Collections

List all collections in a specific drive

get

Get a listing of all the collections in the database

Query parameters
drive_idstring · uuidRequired

The id of the drive we want to get collections from

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

A list of all collections in the specified drive.

application/json
get
/collections

Create a collection

post

Create a new user collection of assets

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
namestringRequired

The name of the user collection to be created

descriptionstringOptional

The description of the user collection to be created

Default: ""
drive_idstring · uuidRequired

The id of the drive to create the collection in

Responses
chevron-right
200

The id of the created user collection

application/json
Responsestring · uuid
post
/collections

Get a collection by its id

get

Get a collection by id

Path parameters
collection_idstring · uuidRequired
Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

The collection

application/json
Responseany of
or
nullOptional
get
/collections/{collection_id}

Update a collection

put

Update a collection

Path parameters
collection_idstring · uuidRequired

The id of the collection to be updated

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
nameany ofOptional

The new name for the collection

stringOptional
or
nullOptional
descriptionany ofOptional

The new description for the collection

stringOptional
or
nullOptional
is_public_enabledany ofOptional
booleanOptional
or
nullOptional
iconany ofOptional
stringOptional
or
nullOptional
icon_typeany ofOptional
string · enumOptionalPossible values:
or
nullOptional
allowed_actionsany ofOptional
or
nullOptional
background_imageany ofOptional
stringOptional
or
nullOptional
settingsany ofOptional
or
nullOptional
expiration_dateany ofOptional

The expiration date of the collection

string · date-timeOptional
or
nullOptional
passwordany ofOptional

The password of the collection

stringOptional
or
nullOptional
removed_passwordany ofOptional

remove the collection password

Default: false
booleanOptional
or
nullOptional
Responses
chevron-right
200

The updated collection

application/json
put
/collections/{collection_id}

Delete a collection

delete

Delete a collection

Path parameters
collection_idstring · uuidRequired

The id of the collection to be deleted

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

True if the collection was deleted, false if it was not found

application/json
Responseboolean
delete
/collections/{collection_id}

Get an MRSS feed for a collection

get

Return an MRSS (Media RSS) feed for a collection.

This endpoint is intended for public consumption and only returns data when the collection's public link visibility is enabled. If the collection is not public or is expired, a 404 is returned. If the collection is password-protected and the password is incorrect, a 403 is returned.

Path parameters
collection_idstring · uuidRequired
Query parameters
pageinteger · min: 1Optional

1-indexed page of assets in the collection to return.

Default: 1
limitinteger · min: 1 · max: 100Optional

Maximum number of assets to include in the MRSS feed.

Default: 20
Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

An MRSS XML feed for the public collection

application/json
Responseany
get
/collections/{collection_id}/mrss

No content

Add assets to a collection

post

Add assets to a collection, if they are in the same drive.

Path parameters
collection_idstring · uuidRequired

The id of the collection to add assets to

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
asset_idsany ofOptional

The ids of the assets to add to the collection

Default: []
string · uuid[]Optional
or
nullOptional
directory_pathsany ofOptional

Add all assets under these paths to the collection

Default: []
string[]Optional
or
nullOptional
Responses
chevron-right
200

The updated collection

application/json
post
/collections/{collection_id}/assets

Remove assets from a collection

delete

Remove assets from a collection

Path parameters
collection_idstring · uuidRequired

The id of the collection to remove a file from

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
asset_idsstring · uuid[]Required

The ids of the assets to remove from the collection

Responses
chevron-right
200

Successful Response

application/json
delete
/collections/{collection_id}/assets

Move an asset to a new position in the collection

post

Move a single asset to a new position in the collection. Only updates the assets affected by the move.

Path parameters
collection_idstring · uuidRequired

The id of the collection whose asset order will be updated

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
asset_idstring · uuidRequired

The id of the asset to move

new_orderintegerRequired

The new position for the asset (1-indexed)

Responses
chevron-right
200

Success status

application/json
Responseany
post
/collections/{collection_id}/assets/order

No content

Get directory paths from a collection

get

Get the directory paths from a collection

Path parameters
collection_idstring · uuidRequired

The id of the collection to get directory paths from

Query parameters
queryany ofOptional

Optional query to filter directory paths

stringOptional
or
nullOptional
Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
Responses
chevron-right
200

The directory paths included in the collection

application/json
Responsestring[]
get
/collections/{collection_id}/directories

Add directory paths to a collection

post

Add directory paths to a collection.

Path parameters
collection_idstring · uuidRequired

The id of the collection to add directory paths to

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
directory_pathsstring[]Required

The paths of the directories to add to the collection

Responses
chevron-right
200

The updated collection

application/json
post
/collections/{collection_id}/directories

Remove directory paths from a collection

delete

Remove directory paths from a collection

Path parameters
collection_idstring · uuidRequired

The id of the collection to remove directory paths from

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
directory_pathsstring[]Required

The paths of the directories to remove from the collection

Responses
chevron-right
200

Successful Response

application/json
delete
/collections/{collection_id}/directories

Start the upload process for a collection attachment

post

Start the upload process for a collection attachment

Path parameters
collection_idstring · uuidRequired

The id of the collection to create the attachment for

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
drive_idstring · uuidRequired

The id of the drive to create the attachment for

namestringRequired

The name of the attachment to be created

mime_typestringRequired

The mime type of the attachment to be created

sizeintegerRequired

The size of the attachment to be created

upload_forstring · enumRequired

What the upload is for ('icon' or 'background')

Possible values:
Responses
chevron-right
200

The id of the created user collection

application/json
post
/collections/{collection_id}/attachments

Mark the upload of a collection attachment as complete

post

Mark the upload of a collection attachment as complete

Path parameters
collection_idstring · uuidRequired

The id of the collection to mark the attachment uploaded for

attachment_idstring · uuidRequired

The id of the attachment to mark as uploaded

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
drive_idstring · uuidRequired

The id of the drive to mark the attachment uploaded for

Responses
chevron-right
200

Successful Response

application/json
post
/collections/{collection_id}/attachments/{attachment_id}

Last updated