Get one document.
GET/api/v1/documents/{document_id}documents:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Needs read access to the document (403 naming the ID otherwise). Folder paths the caller cannot see are not shown. Custom field values are not built in this release.
| スコープ | documents:read |
| 非同期 | いいえ |
| MCP ツール | get_document |
| Portal の権限 | view_document_metadata |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
document_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json Document |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | 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 |
421 | wrong_region | application/problem+json Problem |
422 | 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 のコードです。各コードからそのページに移動できます。
| コード | ステータス |
|---|---|
invalid_version | 400 |
token_expired | 401 |
unauthenticated | 401 |
forbidden | 403 |
insufficient_scope | 403 |
token_owner_inactive | 403 |
not_found | 404 |
method_not_allowed | 405 |
not_acceptable | 406 |
wrong_region | 421 |
validation_failed | 422 |
internal_error | 500 |
tenant_unavailable | 503 |
unavailable | 503 |
timeout | 504 |
スキーマ
AdditionalField
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
label | string または null | 必須 | |
value | string または null | 必須 |
AdditionalFields
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
additional_field_3 | AdditionalField | 必須 | |
additional_field_4 | AdditionalField | 必須 | |
additional_field_5 | AdditionalField | 必須 | |
additional_field_6 | AdditionalField | 必須 |
Document
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
actual_submission_date | string または null | 必須 | |
additional_fields | AdditionalFields | 必須 | |
created_at | string (date-time) または null | 必須 | |
created_by | UserRef または null | 必須 | |
custom_field_rows | DocumentCustomFieldRow の配列 | 必須 | The register rows the document is linked to that the caller may read, one entry per row in link order. |
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). |
file | DocumentFile または null | 必須 | The current file; null when the document has none. |
folders | DocumentFolder の配列 | 必須 | The folders the document is filed in that the caller can see. |
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 | 必須 |
DocumentCustomFieldRow
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
custom_field_template_id | string | 必須 | The register the row belongs to. |
row_id | string | 必須 | |
values | object | 必須 | The row's field values, keyed by field name. |
DocumentFile
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
content_type | string または null | 必須 | |
file_hash | string または null | 必須 | The hash the Portal stored for the file's content; null when none was recorded. |
file_name | string | 必須 | |
has_pdf | boolean | 必須 | Whether a PDF rendition of the file is ready (an Office file converts on demand, so false only means not yet). |
is_indexed | boolean | 必須 | Whether the file's text has been indexed for search. |
page_count | integer または null | 必須 | The pages the file has, once the Portal has counted them; null before. |
size_bytes | string または null | 必須 | |
version_id | string | 必須 |
DocumentFolder
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
folder_id | string | 必須 | |
path | string または null | 必須 |
UserRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 必須 | |
kind | string: user, system, integration または string | 必須 | |
user_id | string または null | 必須 |