Skip to main content
PATCH
/
v1
/
uploads
/
{upload_id}
Upload a chunk
curl --request PATCH \
  --url https://roughy-api-staging.fly.dev/v1/uploads/{upload_id} \
  --header 'Authorization: Bearer <token>'
{
  "error": {
    "code": "bad_request",
    "message": "Missing / malformed TUS headers."
  }
}

Authorizations

Authorization
string
header
required

Pass your API key as Authorization: Bearer sk_…. Mint a key from your dashboard's API-keys page.

Headers

Upload-Offset
integer | null

Byte offset this chunk starts at. Must equal the current server-side offset; a mismatch returns 409 (call HEAD to discover the true offset).

Content-Length
integer | null

Size of the chunk body in bytes.

Content-Type
string | null

Must be application/offset+octet-stream.

Tus-Resumable
string | null

TUS protocol version. Must be 1.0.0.

Path Parameters

upload_id
string<uuid>
required

Identifier of the upload.

Response

Chunk accepted. The new offset is returned as a response header.