Skip to main content

Create or recover a durable resumable-upload session

POST 

/api/v1/uploads

Implements TUS 1.0 creation. Upload-Length is a declared original length, not a Jiandu product limit. Upload-Metadata carries base64 filename, optional conventional filetype (or Jiandu contentType), and allowDuplicate fields. Retrying an identical Idempotency-Key returns the original session Location. Replaying an accepted session requires current documents.read permission and access to its document; an unreadable accepted session returns 404.

Request​

Responses​

Session created or idempotently recovered; Location identifies it

Response Headers
    Location

    Relative URL of the upload session

    Tus-Resumable

    TUS protocol version 1.0.0

    Upload-Expires

    HTTP-date after which the session expires

    Upload-Length

    Declared total byte length

    Upload-Offset

    Current durable byte offset

    X-Request-Id

    Opaque request correlation identifier. ProblemDetails.requestId carries the same value on JSON failures.