Collection Assets

APIs related to Collection Assets

Get assets of a collection

get

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
get
/collections/{id}/assets
GET /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 the collection

post

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
post
/collections/{id}/assets
POST /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 the collection

delete

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

delete
/collections/{id}/assets
DELETE /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 assets in the collection

patch

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

patch
/collections/{id}/assets
PATCH /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