List affiliate media
GET/affiliate-manager/:locationId/media
Retrieve media files and folders for a location.
Request
Version stringrequired
API Version
Available options
2021-04-15locationId stringrequired
Location Id
query string
Search media by name
parentId string
Filter media by parent folder
campaignId string
Filter media by campaign
mediaType string
Filter by media type
Available options
folderfileskip number
Number of records to skip
Default value:
0limit number
Maximum number of records to return. Maximum allowed value is 100.
Possible values: >= 1 and <= 100
Default value:
10sortByType string
Sort order for returned media
Available options
name-a-to-zname-z-to-aupdatedAt-newestupdatedAt-oldestshowGlobal boolean
Show image set for global campaign
Default value:
falseSuccessful response
- application/json
- Schema
- Example (auto)
Schema
mediaListobject[]required
Media files and folders
metaobject
Pagination metadata
{
"mediaList": [
{
"_id": "63d376de11be1d26d38f7369",
"name": "brand-logo.png",
"type": "file"
}
],
"meta": {
"count": 1
}
}