Skip to content

Upload a chunk of a file

POST
/v3/uploads/{upload_id}/chunks
curl --request POST \
--url 'https://api.cardio.ai/v3/uploads/example/chunks?offset=1' \
--header 'Content-Type: application/octet-stream' \
--header 'X-Api-Token: <X-Api-Token>' \
--data binary

Receives and stores a chunk of an ongoing file upload session.

upload_id
required
string

Upload session ID.

offset
required
integer format: uint32

Byte offset for the chunk.

Binary chunk data.

Media type application/octet-stream
string format: binary

Operation completed successfully.

Bad Request - missing or invalid parameters.

Media type application/json
string
Example generated
example

Unauthorized - missing, expired, or invalid token.

Media type application/json
string
Example generated
example

Too Many Requests - rate limit exceeded.

Media type application/json
string
Example generated
example