Skip to main content

Complete an upload session.

POST/api/v1/uploads/{upload_id}/completeNone

Checks that storage holds every part and exactly size_bytes, then marks the session completed. Completing a completed session answers it again. 409 names the missing parts.

ScopeNone
AsynchronousNo
MCP toolcomplete_upload

Parameters​

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

Request body​

Content typeType
application/jsonUploadCompleteInput

Responses​

StatusDescriptionBody
200Success.application/json Upload
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, idempotency_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

UploadCompleteInput​

FieldTypeRequiredDescription
partsarray of UploadCompletedPartInputOptionalThe ETags storage answered each part PUT with. Optional: the server completes from the parts storage holds, and refuses (409) a part sent here that differs from them.

UploadCompletedPartInput​

FieldTypeRequiredDescription
etagstringRequired
part_numberintegerRequired≥ -2147483648; ≤ 2147483647

UploadPart​

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