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

File a document in a location.

POST/api/v1/documents/{document_id}/locationsdocuments:write
注記

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

Needs Add Document Locations, View Locations and an edit grant on the unlocked document. The location is shown with View Document Locations, otherwise the answer is the write receipt. The location must exist (422 otherwise). A document already filed there is 409 already_exists.

スコープdocuments:write
非同期いいえ
MCP ツールcreate_document_location
Portal の権限add_document_locations, view_locations

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonDocumentLocationCreateInput

応答​

ステータス説明本文
201Success.application/json Location または object
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
409already_exists, idempotency_in_progress, lockedapplication/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 のコードです。各コードからそのページに移動できます。

スキーマ​

DocumentLocationCreateInput​

フィールド型必須説明
location_idstring必須The location to file the document in, from GET /locations.

Location​

フィールド型必須説明
codestring または null必須
descriptionstring または null必須
is_activeboolean または null必須Whether the location can be used.
location_idstring必須
location_typestring または null必須The location type's name; null when none is set.
parent_location_idstring または null必須The parent location; null for a top-level location.
pathstring または null必須The location's ancestors' descriptions and its own, joined with ->.
projectobject または null必須