Assets
Get Tree
GET /api/assets/tree
Returns all the Folder Assets in the tree.
Get Files in Folder
GET /api/assets/[FOLDER ID]/files
or
GET /api/assets/browse/files?path=/path/to/asset
Returns the targeted asset with all the child the Assets of type FILE.
Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
Info
You can use "root" or "hub" as the folder ID to get the files in the root folder
Request
Parameter | Type | Description |
---|---|---|
FOLDER ID | ID | Uuid or the name of the Folder |
Response
Array of Assets
Get Folders in Folder
GET /api/assets/[FOLDER ID]/folders
or
GET /api/assets/browse/folders?path=/path/to/folder
Returns all the Assets of type FOLDER in the folder.
Request
Parameter | Type | Description |
---|---|---|
FOLDER ID | ID | Uuid or the name of the Folder |
Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
Get Files in the Trash Folder
GET /api/assets/trash/files
Returns all the Assets in the trash folder.
Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
Get Asset
GET /api/assets/[ASSET ID]
or
GET /api/assets/browse?path=/path/to/asset
Returns the Assets.
Request
Parameter | Type | Description |
---|---|---|
ASSET ID | ID | Uuid of the Asset |
Response
Download Asset
GET /api/assets/[ASSET ID]/download
or
GET /api/assets/browse/download?path=/path/to/asset
Returns the file.
Request
Parameter | Type | Description |
---|---|---|
ASSET ID | ID | Uuid of the Asset |
Response
File
Download Multiple Assets
POST /api/assets/batch/download
You can use this API request to download multiple asset files. The request returns a ZIP file.
Request Body
1 2 3 |
|
Parameter | Type | Description |
---|---|---|
ids | String (Array) | The ids of the assets to download |
Response
Returns a ZIP file containing the assets.
Get Asset Thumbnail
GET /api/assets/[ASSET ID]/thumbnail
or
GET /api/assets/browse/thubnail?path=/path/to/asset
Returns a small resolution of the original file. If the asset is a video, a snapshot image will be returned.
Request
Parameter | Type | Description |
---|---|---|
ASSET ID | ID | Uuid of the Asset |
Response
Image File
Create a Folder
GET /api/assets/[FOLDER ID]/createfolder/[NEW FOLDER NAME]
or
GET /api/assets/browse/createfolder?path=/path/to/parent/folder
Creates a new Folder under the Folder Asset provided.
Request
Parameter | Type | Description |
---|---|---|
FOLDER ID | ASSET ID | Uuid of the parent Folder |
NEW FOLDER NAME | String | The name of the new folder |
Response
The created Folder Asset
Upload Asset
POST /api/assets/[FOLDER ID]/upload
or
POST /api/assets/browse/upload?path=/path/to/parent/folder
Uploads the asset to the folder that corresponds to the folder ID provided.
Request Body
FILE
Response
The uploaded Asset
Rename an Asset
GET /api/assets/[ASSET ID]/rename/[NEW NAME]
or
GET /api/assets/browse/rename/[NEW NAME]?path=/path/to/asset
Renames the asset.
Request
Parameter | Type | Description |
---|---|---|
ASSET ID | ASSET ID | Uuid of the Asset |
NEW NAME | String | The new name of the asset |
Response
The updated Asset
Move an Asset
GET /api/assets/[ASSET ID]/move/[FOLDER ID]
Moves the asset to the destination folder
Request
Parameter | Type | Description |
---|---|---|
ASSET ID | ASSET ID | Uuid of the Asset |
FOLDER ID | ASSET ID | Uuid of the destination folder |
Response
The moved Asset
Delete an Asset
DELETE /api/assets/[ASSET ID]
Moves the assets that corresponds to the asset ID to the Trash folder.
Request
Parameter | Type | Description |
---|---|---|
ASSET ID | ASSET ID | Uuid of the Asset |
Response
The deleted Asset
Delete Multiple Assets
POST /api/assets/delete?recursive=true
Deletes multiple assets
Request parameters
Parameter | Type | Description |
---|---|---|
recursive | Boolean | set to true |
Request Body
1 2 3 |
|
Parameter | Type | Description |
---|---|---|
Body | ASSET ID (Array) | The ids of the assets to delete |
Response
Success message:
1 2 3 |
|
1 2 3 4 |
|
Restore a Deleted Asset
GET /api/assets/[ASSET ID]/restore
Restores an asset that was deleted back to it's original path.
Request
Parameter | Type | Description |
---|---|---|
ASSET ID | ASSET ID | Uuid of the Asset |
Response
The restored Asset
Restore Multiple Deleted Assets
POST /api/assets/restore
Deletes multiple assets
Request Body
1 2 3 |
|
Parameter | Type | Description |
---|---|---|
Body | ASSET ID (Array) | The ids of the assets to restore |
Tags
GET /api/assets/tags
Returns all tags assigned to assets.
Response
Array of Tags (String)
Example Response Body
1 |
|