Work out the next revision number of a reference number.
POST/api/v1/documents/check-revisiondocuments:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Needs Preview Reference Numbers, and View Document Metadata when revision_number asks whether the pair is taken. The revision a new document with the reference number would take, following the revisions the company already holds under it (the Portal's next revision). With revision_number, is_duplicate says whether any document already has that reference number and revision, the caller's unreadable documents included. document_id names the document being renumbered, which is left out of both.
| スコープ | documents:read |
| 非同期 | いいえ |
| MCP ツール | check_document_revision |
| Portal の権限 | preview_reference_numbers |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | NextRevisionRequestInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json NextRevision |
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 |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | 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 | 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 のコードです。各コードからそのページに移動できます。
スキーマ
NextRevision
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
is_duplicate | boolean | 必須 | Whether another document has the reference number and revision_number; false when no revision_number was sent. |
next_revision_number | string | 必須 | The revision a new document with the reference number takes: the one after the highest revision the company holds under it, or the company's first revision when it holds none. |
reference_number | string | 必須 |
NextRevisionRequestInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
document_id | string または null | 任意 | The document being renumbered; you must be able to read it. |
reference_number | string | 必須 | The reference number to number the next revision of. |
revision_number | string または null | 任意 | A revision to check for a clash with another document. |