Skip to main content

Start an upload session.

POST/api/v1/uploadsNone

purpose decides the scope: document → documents:write, forge_bundle → forge:deploy, plugin_bundle → plugins:write, certificate → connectors:write. PUT each part's bytes to its URL (in any order, in parallel), then POST /uploads/{upload_id}/complete, then pass upload_id to the route that uses the file. GET /uploads/{upload_id} lists the parts storage does not hold yet, with fresh URLs, to resume.

ScopeNone
AsynchronousNo
MCP toolcreate_upload

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonUploadCreateInput

Responses​

StatusDescriptionBody
201Success.application/json Upload or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

Upload​

FieldTypeRequiredDescription
content_typestringRequired
expires_atstring (date-time)RequiredThe session, its part URLs and an upload not yet used by its consumer are discarded after this.
file_namestringRequired
part_size_bytesstringRequiredEvery part but the last is exactly this long: part n holds the bytes from (n-1) × part_size_bytes.
partsarray of UploadPartRequiredThe parts still to send, with their URLs: all of them on create, the ones storage does not hold yet on a read (resume). Empty once the session is completed or aborted.
purposestring: document, forge_bundle, plugin_bundle, certificate, workflow_attachment, annotation_picture or stringRequired
size_bytesstringRequired
statusstring: open, completed, aborted or stringRequired
upload_idstringRequired

UploadCreateInput​

FieldTypeRequiredDescription
content_typestringRequired
file_namestringRequiredThe file's name, without a path.
purposestring: document, forge_bundle, plugin_bundle, certificate, workflow_attachment, annotation_pictureRequired
sha256string or nullOptionalThe file's SHA-256 (64 hexadecimal digits). Checked where the server reads the file (bundles, certificates, images); a document's file is not read here, so it is not checked.
size_bytesstringRequiredThe file's exact size in bytes. No limit beyond what object storage holds in one object.

UploadPart​

FieldTypeRequiredDescription
expires_atstring (date-time)Required
part_numberintegerRequired≥ -2147483648; ≤ 2147483647
urlstringRequiredPUT the part's bytes here, without authentication headers.