Create catalog collections

POST {{baseUrl}}/v2/catalog/collections

This endpoint creates a catalog collection and optionally adds assets. To add assets to the collection later, use PATCH /v2/catalog/collections/{collection_id}/items.

Request Body

{"name"=>"<string>", "visibility"=>"private", "items"=>[{"asset"=>{"type"=>"<string>", "id"=>"<string>"}}, {"asset"=>{"type"=>"<string>", "id"=>"<string>"}}]}

HEADERS

KeyDatatypeRequiredDescription
User-Agentstring

RESPONSES

status: Created

{&quot;id&quot;:&quot;126351028&quot;,&quot;name&quot;:&quot;My collection&quot;,&quot;cover_asset&quot;:{&quot;id&quot;:&quot;123&quot;,&quot;asset&quot;:{&quot;id&quot;:&quot;1690105108&quot;,&quot;type&quot;:&quot;image&quot;,&quot;name&quot;:&quot;Young couple playing tennis at the court&quot;},&quot;created_time&quot;:&quot;2021-06-10T13:26:09-04:00&quot;},&quot;total_item_count&quot;:2,&quot;created_time&quot;:&quot;2021-05-20T16:15:22-04:00&quot;,&quot;updated_time&quot;:&quot;2021-06-10T13:26:09-04:00&quot;,&quot;visibility&quot;:&quot;public&quot;,&quot;role_assignments&quot;:{&quot;collection_id&quot;:&quot;126351028&quot;,&quot;roles&quot;:{&quot;owners&quot;:[{&quot;id&quot;:&quot;321&quot;,&quot;type&quot;:&quot;USER&quot;,&quot;email&quot;:&quot;userOne@org.com&quot;}],&quot;editors&quot;:[{&quot;id&quot;:&quot;987&quot;,&quot;type&quot;:&quot;USER&quot;,&quot;email&quot;:&quot;userTwo@org.com&quot;}],&quot;viewers&quot;:[]}}}