Skip to main content
Affiliate MediaVersion: v3

Update affiliate media

PUT/affiliate-manager/{locationId}/media/{mediaId}

Update a media file or folder for a location.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:affiliate-manager.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Path Parameters

locationIdstringrequired

Location Id

Example:ve9EPM428h8vShlRW1KT
mediaIdstringrequired

Media Id

Example:63d376de11be1d26d38f7369

Body

namestring

Updated file or folder name

Example:File/Folder Name
parentIdstring

Updated parent folder identifier

Example:63d376de11be1d26d38f7369

Response

Successful response

_idstring

Media identifier

Example:63d376de11be1d26d38f7369
locationIdstring

Location identifier

Example:ve9EPM428h8vShlRW1KT
namestring

Media name

Example:brand-logo.png
typestring

Media type

Available optionsfolderfile
Example:file
parentIdstring

Parent folder identifier

Example:63d376de11be1d26d38f7369
altIdstring

Alternative identifier

Example:ve9EPM428h8vShlRW1KT
altTypestring

Alternative identifier type

Example:media
contentTypestring

Content type

Example:image/png
urlstring

Media URL

Example:https://example.com/brand-logo.png
sizenumber

Media size in bytes

Example:45678
campaignIdsstring[]

Campaign identifiers associated with the media

Example:["63d376de11be1d26d38f7369"]
campaignsobject[]

Campaigns associated with the media

deletedboolean

Whether the media is deleted

Example:false
createdAtstring<date-time>

Creation time

Example:2024-01-01T00:00:00.000Z
updatedAtstring<date-time>

Last update time

Example:2024-01-01T00:00:00.000Z