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

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-Versionheaderstring (date)任意

リクエスト本文​

Content-Type型
application/jsonNextRevisionRequestInput

応答​

ステータス説明本文
200Success.application/json NextRevision
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

NextRevision​

フィールド型必須説明
is_duplicateboolean必須Whether another document has the reference number and revision_number; false when no revision_number was sent.
next_revision_numberstring必須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_numberstring必須

NextRevisionRequestInput​

フィールド型必須説明
document_idstring または null任意The document being renumbered; you must be able to read it.
reference_numberstring必須The reference number to number the next revision of.
revision_numberstring または null任意A revision to check for a clash with another document.