restore_document_revision
Restores the document to the state of a past revision — replaces its title, content and language with those of that revision, exactly as a manual update_document would with that content. expectedVersion (required, as for update_document) is the version you read via get_document before this call: if it has diverged, the call fails naming the current version rather than overwriting a concurrent write. The state OVERWRITTEN by the restoration is itself kept as a new revision — restoring is never a loss, only one more round trip in the history. ⚠️ REFUSED on a kind: "html" document, which has no history: its source is authoritative and is replaced with update_document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | Document identifier, obtained via list_documents. | |
| revisionId | Yes | The revision to restore — obtained via list_document_revisions. Its title, content and language REPLACE those of the current document, identical to what they were when this revision was kept. | |
| expectedVersion | Yes | The document version you believe you are restoring over (obtained via get_document). If it has diverged since, the call fails with the current version rather than overwriting a concurrent write. | |
| expectedProjectId | No | UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted. |