Start an asset upload
Starts adding a file to the project's library.
The answer describes the request that sends the file straight to storage; send it, then create the asset from the upload. Nothing is added before that. A person, or an app acting as one, can upload; a secret key cannot. Needs project:files:write.
Guide: Fonts and images
Errors
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request | invalid_file | For a type or size the library does not take. |
| 403 | permission_denied | permission_denied | Without permission to change the project's files. |
| 409 | conflict | idempotency_key_reused | For a key already used for another file. |
| 409 | conflict | upload_finished | For one whose file has been added or refused. |
| 503 | unavailable | file_storage_unavailable | — |
It can also fail with the errors every operation shares, such as unauthenticated; see Errors.
More in Assets
- List assets
GET - Create an asset
POST - Retrieve an asset
GET - Preview an asset
GET
Something wrong or missing on this page? Tell us by email or on Discord.