Skip to content

Test a resumable upload

POST
/api/items/upload/test
curl --request POST \
--url https://example.com/api/items/upload/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@file \
--form assetId=example

Initiates a test TUS resumable upload for an asset using multipart/form-data (file + assetId).

Media typemultipart/form-data
object
file

File to upload

string format: binary
assetId
required

Target asset ID from createItem

string

Upload process started

Media typetext/plain
string

Error starting upload

Media typeapplication/json
object
error
required

Indicates an error occurred

boolean
message
required

Error message describing what went wrong

string
Example
{
"error": true,
"message": "Item not found"
}