API reference
Storage
Where a project's files are stored and how much they take up.
How to sign in, send a revision and read errors is on the overview.
Whether the project can take files
GET /api/projects/:id/storage
Token: read. Role: viewer or above.
How much the project stores
GET /api/projects/:id/storage/usage
Token: read. Role: admin or above.
What takes up the space, as a tree
GET /api/projects/:id/storage/tree
Token: read. Role: admin or above.
| Query | Type | Required |
|---|---|---|
path | text (up to 400 characters) | no |
role | one of "permanent", "cache" | no |
limit | whole number, 1 or more | no |
The largest files
GET /api/projects/:id/storage/largest
Token: read. Role: admin or above.
| Query | Type | Required |
|---|---|---|
role | one of "permanent", "cache" | no |
kind | one of "version_source", "version_preview", "review_media", "reference_file", "preview_cache", "automation_log" | no |
cursor | text | no |
limit | whole number, 1 or more | no |
Set how much space the project may take
PUT /api/projects/:id/storage/capacity
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
role | one of "permanent", "cache" | yes |
capacityBytes | whole number, 1 to 1125899906842624, or null | yes |
The project's own bucket
GET /api/projects/:id/storage-connection
Its keys are never shown.
Token: read. Role: admin or above.
Connect a bucket for the project
PUT /api/projects/:id/storage-connection
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
endpoint | text (up to 300 characters), or null | no |
region | text (up to 60 characters) | no |
bucket | text | yes |
prefix | text (up to 100 characters) | no |
forcePathStyle | true or false | no |
accessKeyId | text (up to 128 characters) | yes |
secretAccessKey | text (up to 256 characters) | yes |
Check the bucket
POST /api/projects/:id/storage-connection/check
Token: write. Role: admin or above.
Choose the folder in the bucket
PUT /api/projects/:id/storage-connection/folder
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
folder | text (up to 100 characters) | yes |
Disconnect the bucket
DELETE /api/projects/:id/storage-connection
Token: write. Role: admin or above.
The project's cache bucket
GET /api/projects/:id/storage-connection/cache
Token: read. Role: admin or above.
Connect a cache bucket
PUT /api/projects/:id/storage-connection/cache
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
endpoint | text (up to 300 characters), or null | no |
region | text (up to 60 characters) | no |
bucket | text | yes |
prefix | text (up to 100 characters) | no |
forcePathStyle | true or false | no |
accessKeyId | text (up to 128 characters) | yes |
secretAccessKey | text (up to 256 characters) | yes |
Check the cache bucket
POST /api/projects/:id/storage-connection/cache/check
Token: write. Role: admin or above.
Disconnect the cache bucket
DELETE /api/projects/:id/storage-connection/cache
Token: write. Role: admin or above.