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. writeAuth methods:
OAuthPrivate IntegrationToken type:
Sub-Account TokenRequest
Headers
Versionstringrequired
API Version
Available options
v3Example:
v3Path Parameters
locationIdstringrequired
Location Id
Example:
ve9EPM428h8vShlRW1KTmediaIdstringrequired
Media Id
Example:
63d376de11be1d26d38f7369Body
namestring
Updated file or folder name
Example:
File/Folder NameparentIdstring
Updated parent folder identifier
Example:
63d376de11be1d26d38f7369Response
Successful response
_idstring
Media identifier
Example:
63d376de11be1d26d38f7369locationIdstring
Location identifier
Example:
ve9EPM428h8vShlRW1KTnamestring
Media name
Example:
brand-logo.pngtypestring
Media type
Available options
folderfileExample:
fileparentIdstring
Parent folder identifier
Example:
63d376de11be1d26d38f7369altIdstring
Alternative identifier
Example:
ve9EPM428h8vShlRW1KTaltTypestring
Alternative identifier type
Example:
mediacontentTypestring
Content type
Example:
image/pngurlstring
Media URL
Example:
https://example.com/brand-logo.pngsizenumber
Media size in bytes
Example:
45678campaignIdsstring[]
Campaign identifiers associated with the media
Example:
["63d376de11be1d26d38f7369"]campaignsobject[]
Campaigns associated with the media
deletedboolean
Whether the media is deleted
Example:
falsecreatedAtstring<date-time>
Creation time
Example:
2024-01-01T00:00:00.000ZupdatedAtstring<date-time>
Last update time
Example:
2024-01-01T00:00:00.000Z