restore_document_version
Restore a prior version of a workspace document as the new current bytes. Reversible: the current bytes are snapshotted as a new version first. Requires write access to the document. Refused with code DOCUMENT_LOCKED_FOR_APPROVAL while a workflow approval is open on the document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | WorkspaceDocument id. | |
| versionNumber | Yes | The version number to restore (>= 1). |