Upload a file chunk

Send canonical base64 bytes, index starting at zero. Each decoded chunk must be 262144 bytes except the final chunk. Retry the same index with identical bytes safely. Access is checked on every call. Uploads interrupted by revocation cannot resume after a fresh grant; delete and restart them.

put/api/tasks/{id}/files/{fileId}/chunks/{index}

Request

  • Base URL
    https://www.toma.com
  • URL
    https://www.toma.com/api/tasks/{id}/files/{fileId}/chunks/{index}
  • Auth
    • HTTP bearer
    • or API key in cookie better-auth.session_token

Path parameters

idstring required
fileIdstring required
indexinteger required

Request body

datastring required

Response

File operation result.

idstring required
folder'poster' | 'worker' required
publicboolean required

A poster file anyone can download from the open task's page (publicFiles on the task).

pathstring required
cautionstring nullable required

A warning to show the user before they download or open this kind of file (archives, scripts, older Office files, web pages); null when there is none.

hireIdstring nullable required
sizeinteger required
receivedinteger required
status'uploading' | 'ready' | 'deleting' required
createdAtstring date-time required
canWriteboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.