メインコンテンツまでスキップ

Start an upload session.

POST/api/v1/uploadsなし
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

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.

スコープなし
非同期いいえ
MCP ツールcreate_upload

パラメーター​

名前場所型必須説明
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonUploadCreateInput

応答​

ステータス説明本文
201Success.application/json Upload または 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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

Upload​

フィールド型必須説明
content_typestring必須
expires_atstring (date-time)必須The session, its part URLs and an upload not yet used by its consumer are discarded after this.
file_namestring必須
part_size_bytesstring必須Every part but the last is exactly this long: part n holds the bytes from (n-1) × part_size_bytes.
partsUploadPart の配列必須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.
purposestring: document, forge_bundle, plugin_bundle, certificate, workflow_attachment, annotation_picture または string必須
size_bytesstring必須
statusstring: open, completed, aborted または string必須
upload_idstring必須

UploadCreateInput​

フィールド型必須説明
content_typestring必須
file_namestring必須The file's name, without a path.
purposestring: document, forge_bundle, plugin_bundle, certificate, workflow_attachment, annotation_picture必須
sha256string または null任意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_bytesstring必須The file's exact size in bytes. No limit beyond what object storage holds in one object.

UploadPart​

フィールド型必須説明
expires_atstring (date-time)必須
part_numberinteger必須≥ -2147483648; ≤ 2147483647
urlstring必須PUT the part's bytes here, without authentication headers.