catalog
Add items to catalog collections
Changed onThis endpoint adds assets to a catalog collection. It also automatically adds the assets to the user's account's catalog.
post/v2/catalog/collections/{collection_id}/items
Request
- Base URLhttps://api.shutterstock.com
- AuthOAuth 2Authorization codehttps://accounts.shutterstock.com/oauth/authorizeToken URLhttps://api.shutterstock.com/v2/oauth/access_tokenScopescollections.view, collections.edit
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
collection_idstring required
The ID of the collection to add assets to
Request body
Example request
{
"items": [
{
"asset": {
"id": "1690105108",
"type": "image"
}
}
]
}Response
OK
Example response
{
"id": "126351028",
"name": "My collection",
"cover_asset": {
"id": "123",
"asset": {
"id": "1690105108",
"type": "image",
"name": "Young couple playing tennis at the court"
},
"created_time": "2021-06-10T13:26:09-04:00"
},
"total_item_count": 2,
"created_time": "2021-05-20T16:15:22-04:00",
"updated_time": "2021-06-10T13:26:09-04:00",
"visibility": "public",
"role_assignments": {
"collection_id": "126351028",
"roles": {
"owners": [
{
"id": "321",
"type": "USER",
"email": "userOne@org.com"
}
],
"editors": [
{
"id": "987",
"type": "USER",
"email": "userTwo@org.com"
}
],
"viewers": []
}
}
}Changes
- breaking
the request property
///became required - breaking
added the pattern
^[0-9]+[A-Za-z]?$to the request property///
- breaking
- info
endpoint added
- info