Collection Assets
APIs related to Collection Assets
Get list of assets associated with a collection
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstring · uuidRequired
ID of the collection to fetch assets
Responses
200
OK
application/json
401
Unauthorized
404
Collection not found
get
/collections/{id}/assetsGET /api/jewellery/collections/{id}/assets HTTP/1.1
Host: console.studio360.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"records": [
{
"asset_id": "123e4567-e89b-12d3-a456-426614174000",
"order": 1
}
]
}Add assets to a collection
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstring · uuidRequired
ID of the collection to add assets
Body
Responses
201
Assets added to collection successfully
401
Unauthorized
403
Forbidden
404
Collection not found
422
Unprocessable Entity
application/json
post
/collections/{id}/assetsPOST /api/jewellery/collections/{id}/assets HTTP/1.1
Host: console.studio360.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"add": [
{
"asset_id": "123e4567-e89b-12d3-a456-426614174000",
"order": 1
}
]
}No content
Remove assets from a collection
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstring · uuidRequired
ID of the collection to remove assets
Body
removestring · uuid[]Required
Array of assets to remove
Responses
200
Assets removed from collection successfully
No content
401
Unauthorized
403
Forbidden
404
Collection not found
422
Unprocessable Entity
application/json
delete
/collections/{id}/assetsDELETE /api/jewellery/collections/{id}/assets HTTP/1.1
Host: console.studio360.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"remove": [
"123e4567-e89b-12d3-a456-426614174000"
]
}No content
Update asset order in a collection
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstring · uuidRequired
ID of the collection to update assets
Body
Responses
200
Assets updated in collection successfully
No content
401
Unauthorized
403
Forbidden
404
Collection not found
422
Unprocessable Entity
application/json
patch
/collections/{id}/assetsPATCH /api/jewellery/collections/{id}/assets HTTP/1.1
Host: console.studio360.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"update": [
{
"asset_id": "123e4567-e89b-12d3-a456-426614174000",
"order": 1
}
]
}No content
Last updated