Work out the next revision number of a reference number.
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.
| |
|---|
| Scope | documents:read |
| Asynchronous | No |
| MCP tool | check_document_revision |
| Portal permissions | preview_reference_numbers |
Parameters
| Name | In | Type | Required | Description |
|---|
Docwize-Version | header | string (date) | Optional | |
Request body
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
NextRevision
| Field | Type | Required | Description |
|---|
is_duplicate | boolean | Required | Whether another document has the reference number and revision_number; false when no revision_number was sent. |
next_revision_number | string | Required | 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 | Required | |
| Field | Type | Required | Description |
|---|
document_id | string or null | Optional | The document being renumbered; you must be able to read it. |
reference_number | string | Required | The reference number to number the next revision of. |
revision_number | string or null | Optional | A revision to check for a clash with another document. |