Send bytes to a resumable upload
PATCH
/api/v1/files/uploads/{id}
const url = 'https://example.com/api/v1/files/uploads/example';const options = { method: 'PATCH', headers: { 'Tus-Resumable': 'example', 'Upload-Offset': 'example', Authorization: 'Bearer <token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/files/uploads/example \ --header 'Authorization: Bearer <token>' \ --header 'Tus-Resumable: example' \ --header 'Upload-Offset: example'Route: /api/v1/files/uploads/{id}. Inputs: id, Tus-Resumable, Upload-Offset, Upload-Checksum. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”Tus-Resumable
required
string
Tus protocol version 1.0.0
Upload-Offset
required
string
Current upload offset in bytes
Upload-Checksum
string | null
Responses
Section titled “Responses”Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}