File a document in a folder.
POST/api/v1/folders/{folder_id}/documentsdocuments:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Needs an edit grant on the document, which must not be locked, and read access to the folder. A document already filed there is 409 already_exists.
| スコープ | documents:write |
| 非同期 | いいえ |
| MCP ツール | create_folder_document |
| Portal の権限 | add_document_folders |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
folder_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | FolderDocumentCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
201 | Success. | application/json DocumentSummary または object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | already_exists, conflict, idempotency_in_progress, locked | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
AdditionalField
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
label | string または null | 必須 | |
value | string または null | 必須 |
AdditionalFields
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
additional_field_3 | AdditionalField | 必須 | |
additional_field_4 | AdditionalField | 必須 | |
additional_field_5 | AdditionalField | 必須 | |
additional_field_6 | AdditionalField | 必須 |
DocumentSummary
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
actual_submission_date | string または null | 必須 | |
additional_fields | AdditionalFields | 必須 | |
created_at | string (date-time) または null | 必須 | |
created_by | UserRef または null | 必須 | |
description | string または null | 必須 | |
document_date | string または null | 必須 | |
document_id | string | 必須 | |
document_number | string または null | 必須 | |
document_status | object または null | 必須 | The status shown as Status in the Portal (lookup_actionstatus). |
document_sub_type | object または null | 必須 | |
document_type | object または null | 必須 | |
duplicate_of | string または null | 必須 | The number of the document this one duplicates (the Portal's Duplicate Of). |
from_contact | object または null | 必須 | |
from_organisation | object または null | 必須 | |
is_latest_revision | boolean | 必須 | |
is_locked | boolean | 必須 | |
is_privileged | boolean | 必須 | |
main_document_date | string または null | 必須 | |
owner | UserRef または null | 必須 | |
page_end | number または null | 必須 | Last page of the range this document covers in its file. |
page_start | number または null | 必須 | First page of the range this document covers in its file. |
post_review_status | object または null | 必須 | |
project | object または null | 必須 | The stored project number text, with the project's ID when one matches. |
project_organisation | object または null | 必須 | |
reference_number | string または null | 必須 | |
relevance | number または null | 必須 | 1 is relevant (the default), 0 is irrelevant (the Portal's Irrelevant switch). |
responded_with | string または null | 必須 | The reference of the document that responded to this one (the Portal's Responded With). |
response_date | string または null | 必須 | |
response_due_date | string または null | 必須 | |
revision_number | string または null | 必須 | |
to_contact | object または null | 必須 | |
to_organisation | object または null | 必須 |
FolderDocumentCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
document_id | string | 必須 |
UserRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 必須 | |
kind | string: user, system, integration または string | 必須 | |
user_id | string または null | 必須 |