Collections
Get a listing of all the collections in the database
The id of the drive we want to get collections from
A list of all collections in the specified drive.
Not found
Validation Error
GET /collections?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host:
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"invite_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"created_by": {
"name": "text",
"id": "123e4567-e89b-12d3-a456-426614174000"
},
"settings": {
"card_size": 1,
"thumbnail_view": "text",
"view": "text",
"metadata_attribute_ids": [
"text"
]
},
"is_public_enabled": true,
"allowed_actions": [
"manage"
],
"icon_type": "color",
"icon": "text",
"icon_attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"uploader_id": "123e4567-e89b-12d3-a456-426614174000",
"uploaded": true,
"name": "text",
"mime_type": "text",
"size": 1,
"download_url": "text"
},
"background_image": "text",
"background_image_attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"uploader_id": "123e4567-e89b-12d3-a456-426614174000",
"uploaded": true,
"name": "text",
"mime_type": "text",
"size": 1,
"download_url": "text"
},
"preview_image": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"frame": 1
}
}
]
Create a new user collection of assets
The name of the user collection to be created
The description of the user collection to be created
""
The id of the drive to create the collection in
The id of the created user collection
Not found
Validation Error
POST /collections HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 82
{
"name": "text",
"description": "",
"drive_id": "123e4567-e89b-12d3-a456-426614174000"
}
123e4567-e89b-12d3-a456-426614174000
Get a collection by id
The collection
Not found
Validation Error
GET /collections/{collection_id} HTTP/1.1
Host:
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"invite_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"created_by": {
"name": "text",
"id": "123e4567-e89b-12d3-a456-426614174000"
},
"settings": {
"card_size": 1,
"thumbnail_view": "text",
"view": "text",
"metadata_attribute_ids": [
"text"
]
},
"is_public_enabled": true,
"allowed_actions": [
"manage"
],
"icon_type": "color",
"icon": "text",
"icon_attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"uploader_id": "123e4567-e89b-12d3-a456-426614174000",
"uploaded": true,
"name": "text",
"mime_type": "text",
"size": 1,
"download_url": "text"
},
"background_image": "text",
"background_image_attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"uploader_id": "123e4567-e89b-12d3-a456-426614174000",
"uploaded": true,
"name": "text",
"mime_type": "text",
"size": 1,
"download_url": "text"
},
"preview_image": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"frame": 1
},
"num_assets": 1,
"size": 1
}
Update a collection
The id of the collection to be updated
The new name for the collection
The new description for the collection
The updated collection
Not found
Validation Error
PUT /collections/{collection_id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 249
{
"name": "text",
"description": "text",
"is_public_enabled": true,
"icon": "text",
"icon_type": "color",
"allowed_actions": [
"manage"
],
"background_image": "text",
"settings": {
"card_size": 1,
"thumbnail_view": "text",
"view": "text",
"metadata_attribute_ids": [
"text"
]
}
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"invite_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"created_by": {
"name": "text",
"id": "123e4567-e89b-12d3-a456-426614174000"
},
"settings": {
"card_size": 1,
"thumbnail_view": "text",
"view": "text",
"metadata_attribute_ids": [
"text"
]
},
"is_public_enabled": true,
"allowed_actions": [
"manage"
],
"icon_type": "color",
"icon": "text",
"icon_attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"uploader_id": "123e4567-e89b-12d3-a456-426614174000",
"uploaded": true,
"name": "text",
"mime_type": "text",
"size": 1,
"download_url": "text"
},
"background_image": "text",
"background_image_attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"uploader_id": "123e4567-e89b-12d3-a456-426614174000",
"uploaded": true,
"name": "text",
"mime_type": "text",
"size": 1,
"download_url": "text"
},
"preview_image": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"frame": 1
}
}
Delete a collection
The id of the collection to be deleted
True if the collection was deleted, false if it was not found
Not found
Validation Error
DELETE /collections/{collection_id} HTTP/1.1
Host:
Accept: */*
true
Add assets to a collection, if they are in the same drive.
The id of the collection to add assets to
The ids of the assets to add to the collection
[]
Add all assets under these paths to the collection
[]
The updated collection
Not found
Validation Error
POST /collections/{collection_id}/assets HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 81
{
"asset_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"directory_paths": [
"text"
]
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"invite_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"created_by": {
"name": "text",
"id": "123e4567-e89b-12d3-a456-426614174000"
},
"settings": {
"card_size": 1,
"thumbnail_view": "text",
"view": "text",
"metadata_attribute_ids": [
"text"
]
},
"is_public_enabled": true,
"allowed_actions": [
"manage"
],
"icon_type": "color",
"icon": "text",
"icon_attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"uploader_id": "123e4567-e89b-12d3-a456-426614174000",
"uploaded": true,
"name": "text",
"mime_type": "text",
"size": 1,
"download_url": "text"
},
"background_image": "text",
"background_image_attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"uploader_id": "123e4567-e89b-12d3-a456-426614174000",
"uploaded": true,
"name": "text",
"mime_type": "text",
"size": 1,
"download_url": "text"
},
"preview_image": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"frame": 1
}
}
Remove assets from a collection
The id of the collection to remove a file from
The ids of the assets to remove from the collection
Successful Response
Not found
Validation Error
DELETE /collections/{collection_id}/assets HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 54
{
"asset_ids": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"invite_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"created_by": {
"name": "text",
"id": "123e4567-e89b-12d3-a456-426614174000"
},
"settings": {
"card_size": 1,
"thumbnail_view": "text",
"view": "text",
"metadata_attribute_ids": [
"text"
]
},
"is_public_enabled": true,
"allowed_actions": [
"manage"
],
"icon_type": "color",
"icon": "text",
"icon_attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"uploader_id": "123e4567-e89b-12d3-a456-426614174000",
"uploaded": true,
"name": "text",
"mime_type": "text",
"size": 1,
"download_url": "text"
},
"background_image": "text",
"background_image_attachment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"uploader_id": "123e4567-e89b-12d3-a456-426614174000",
"uploaded": true,
"name": "text",
"mime_type": "text",
"size": 1,
"download_url": "text"
},
"preview_image": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"frame": 1
}
}
Start the upload process for a collection attachment
The id of the collection to create the attachment for
The id of the drive to create the attachment for
The name of the attachment to be created
The mime type of the attachment to be created
The size of the attachment to be created
What the upload is for ('icon' or 'background')
The id of the created user collection
Not found
Validation Error
POST /collections/{collection_id}/attachments HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 113
{
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"mime_type": "text",
"size": 1,
"upload_for": "icon"
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"uploader_id": "123e4567-e89b-12d3-a456-426614174000",
"uploaded": true,
"name": "text",
"mime_type": "text",
"size": 1,
"upload_url": "text"
}
Mark the upload of a collection attachment as complete
The id of the collection to mark the attachment uploaded for
The id of the attachment to mark as uploaded
The id of the drive to mark the attachment uploaded for
Successful Response
Not found
Validation Error
POST /collections/{collection_id}/attachments/{attachment_id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"drive_id": "123e4567-e89b-12d3-a456-426614174000"
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"drive_id": "123e4567-e89b-12d3-a456-426614174000",
"uploader_id": "123e4567-e89b-12d3-a456-426614174000",
"uploaded": true,
"name": "text",
"mime_type": "text",
"size": 1,
"download_url": "text"
}