Named groups for organising assets.
POST /api/v1/collections/
Create a collection.
Request
Request body (application/json)
{
"name": "string"
}
Response
Response 201 (application/json)
{
"id": "string",
"name": "string",
"assetIds": [
"string"
],
"createdAt": "string",
"updatedAt": "string"
}
GET /api/v1/collections/{id}
Get a collection.
Parameters
| Name | In | Type | Required |
|---|
id | path | string | required |
Response
Response 200 (application/json)
{
"id": "string",
"name": "string",
"assetIds": [
"string"
],
"createdAt": "string",
"updatedAt": "string",
"assets": [
{}
]
}
PUT /api/v1/collections/{id}/assets/{assetId}
Add an asset to a collection.
Parameters
| Name | In | Type | Required |
|---|
id | path | string | required |
assetId | path | string | required |
Response
Response 200 (application/json)
{
"id": "string",
"name": "string",
"assetIds": [
"string"
],
"createdAt": "string",
"updatedAt": "string"
}
DELETE /api/v1/collections/{id}/assets/{assetId}
Remove an asset from a collection.
Parameters
| Name | In | Type | Required |
|---|
id | path | string | required |
assetId | path | string | required |
Response
Response 200 (application/json)
{
"id": "string",
"name": "string",
"assetIds": [
"string"
],
"createdAt": "string",
"updatedAt": "string"
}