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.
| |
|---|
| Scope | None |
| Asynchronous | No |
| MCP tool | create_upload |
Parameters
| Name | In | Type | Required | Description |
|---|
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
Upload
| Field | Type | Required | Description |
|---|
content_type | string | Required | |
expires_at | string (date-time) | Required | The session, its part URLs and an upload not yet used by its consumer are discarded after this. |
file_name | string | Required | |
part_size_bytes | string | Required | Every part but the last is exactly this long: part n holds the bytes from (n-1) × part_size_bytes. |
parts | array of UploadPart | Required | The 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. |
purpose | string: document, forge_bundle, plugin_bundle, certificate, workflow_attachment, annotation_picture or string | Required | |
size_bytes | string | Required | |
status | string: open, completed, aborted or string | Required | |
upload_id | string | Required | |
| Field | Type | Required | Description |
|---|
content_type | string | Required | |
file_name | string | Required | The file's name, without a path. |
purpose | string: document, forge_bundle, plugin_bundle, certificate, workflow_attachment, annotation_picture | Required | |
sha256 | string or null | Optional | The 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_bytes | string | Required | The file's exact size in bytes. No limit beyond what object storage holds in one object. |
UploadPart
| Field | Type | Required | Description |
|---|
expires_at | string (date-time) | Required | |
part_number | integer | Required | ≥ -2147483648; ≤ 2147483647 |
url | string | Required | PUT the part's bytes here, without authentication headers. |