NAKATAKU ENGINE Docsv1.0https://stg.api.engine.nakataku.ai/v1.0Consoleへ戻る
ドキュメントメニュー

registerMultipartAssetUpload

大容量媒体の multipart upload を登録する

POST/v1.0/content-spaces/{contentSpaceId}/multipart-asset-uploads
Schema preview / 現在は一般提供されていません

1 operationはOpenAPIでschema-onlyとして公開されています。このReferenceからAPI requestは送信できません。

Authentication

すべてのrequestはX-Api-Key headerを使用します。schema-onlyのため、このページにcredential入力やlive requestはありません。

Parameters

NameInTypeDescription
contentSpaceIdrequiredpathstringcontent_space_id は Asset を登録する `space_` + ULID 形式の ContentSpace ID である。
X-Request-Idheaderstring要求相関 ID。省略時は Gateway が生成する。
Idempotency-Keyrequiredheaderstring同一主体、version、endpoint、security workspace 内で登録を収束させる key。visible ASCII、最大255 byte。

Request body

PublicLifecycleServiceRegisterMultipartAssetUploadBody

PublicRegisterMultipartAssetUploadRequest は大容量 direct upload 前に媒体 metadata を登録する。

FieldTypeDescription
displayNamerequiredstringdisplay_name は1文字以上200文字以下の利用者向け表示名である。
mediaTyperequiredv1PublicMediaTypemedia_type は登録する媒体種別である。
sizeBytesrequiredstringsize_bytes は登録内容の byte 単位の正のサイズであり、10 GiB 以下でなければならない。
contentTyperequiredstringcontent_type は媒体本体の MIME type であり、署名対象 header と一致させる。
expectedDigeststringexpected_digest は省略可能な `sha256:` + hex 形式の期待 digest であり、空文字は未指定を表す。

Responses and errors

201multipart upload session を作成した。
v1PublicLifecycleServiceRegisterMultipartAssetUploadResponse

PublicRegisterMultipartAssetUploadResponse は作成した upload と固定分割条件を返す。

FieldTypeDescription
assetUploadv1PublicAssetUploadasset_upload は状態照会、完了受付、取消に使用する公開 upload resource である。
multipartSessionv1PublicMultipartUploadSessionmultipart_session は client が全 part を決定論的に分割するための固定条件である。
400公開 request の形式、必須項目、または範囲が不正である。
v1PublicError

PublicError は provider や security workspace の内部情報を含まない公開 error envelope である。

FieldTypeDescription
codestringcode は公開 API で安定した machine-readable error code である。
messagestringmessage は利用者向けの説明であり、resource の存在と workspace 外参照を区別しない。
requestIdstringrequest_id は response header の X-Request-Id と同じ要求相関 ID である。
docsUrlstringdocs_url は関連する公開文書が存在する場合だけ設定する URL である。
quotaExceededv1PublicQuotaExceededquota_exceeded は quota 超過による拒否時だけ設定する機械可読な詳細である。
401API key を検証できない。
v1PublicError

PublicError は provider や security workspace の内部情報を含まない公開 error envelope である。

FieldTypeDescription
codestringcode は公開 API で安定した machine-readable error code である。
messagestringmessage は利用者向けの説明であり、resource の存在と workspace 外参照を区別しない。
requestIdstringrequest_id は response header の X-Request-Id と同じ要求相関 ID である。
docsUrlstringdocs_url は関連する公開文書が存在する場合だけ設定する URL である。
quotaExceededv1PublicQuotaExceededquota_exceeded は quota 超過による拒否時だけ設定する機械可読な詳細である。
404ContentSpace が存在しない、または security workspace から参照できない。
v1PublicError

PublicError は provider や security workspace の内部情報を含まない公開 error envelope である。

FieldTypeDescription
codestringcode は公開 API で安定した machine-readable error code である。
messagestringmessage は利用者向けの説明であり、resource の存在と workspace 外参照を区別しない。
requestIdstringrequest_id は response header の X-Request-Id と同じ要求相関 ID である。
docsUrlstringdocs_url は関連する公開文書が存在する場合だけ設定する URL である。
quotaExceededv1PublicQuotaExceededquota_exceeded は quota 超過による拒否時だけ設定する機械可読な詳細である。
429rate limit または quota を超過した。
v1PublicError

PublicError は provider や security workspace の内部情報を含まない公開 error envelope である。

FieldTypeDescription
codestringcode は公開 API で安定した machine-readable error code である。
messagestringmessage は利用者向けの説明であり、resource の存在と workspace 外参照を区別しない。
requestIdstringrequest_id は response header の X-Request-Id と同じ要求相関 ID である。
docsUrlstringdocs_url は関連する公開文書が存在する場合だけ設定する URL である。
quotaExceededv1PublicQuotaExceededquota_exceeded は quota 超過による拒否時だけ設定する機械可読な詳細である。
500予期しない内部失敗が発生した。
v1PublicError

PublicError は provider や security workspace の内部情報を含まない公開 error envelope である。

FieldTypeDescription
codestringcode は公開 API で安定した machine-readable error code である。
messagestringmessage は利用者向けの説明であり、resource の存在と workspace 外参照を区別しない。
requestIdstringrequest_id は response header の X-Request-Id と同じ要求相関 ID である。
docsUrlstringdocs_url は関連する公開文書が存在する場合だけ設定する URL である。
quotaExceededv1PublicQuotaExceededquota_exceeded は quota 超過による拒否時だけ設定する機械可読な詳細である。
501schema-only のため、この operation はまだ利用できない。
v1PublicError

PublicError は provider や security workspace の内部情報を含まない公開 error envelope である。

FieldTypeDescription
codestringcode は公開 API で安定した machine-readable error code である。
messagestringmessage は利用者向けの説明であり、resource の存在と workspace 外参照を区別しない。
requestIdstringrequest_id は response header の X-Request-Id と同じ要求相関 ID である。
docsUrlstringdocs_url は関連する公開文書が存在する場合だけ設定する URL である。
quotaExceededv1PublicQuotaExceededquota_exceeded は quota 超過による拒否時だけ設定する機械可読な詳細である。
503credential provider が一時的に利用できない。
v1PublicError

PublicError は provider や security workspace の内部情報を含まない公開 error envelope である。

FieldTypeDescription
codestringcode は公開 API で安定した machine-readable error code である。
messagestringmessage は利用者向けの説明であり、resource の存在と workspace 外参照を区別しない。
requestIdstringrequest_id は response header の X-Request-Id と同じ要求相関 ID である。
docsUrlstringdocs_url は関連する公開文書が存在する場合だけ設定する URL である。
quotaExceededv1PublicQuotaExceededquota_exceeded は quota 超過による拒否時だけ設定する機械可読な詳細である。