restore_document_version
Restore a document's content from a listed version or snapshot to revert unwanted changes; this updates current content, queues reindexing, and does not recover trashed documents.
Instructions
Restore content from a version or snapshot listed by read_document(view=versions). This changes current content and queues indexing; it does not restore a trashed document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| versionId | Yes | UUID returned by the corresponding list or read operation. | |
| documentId | Yes | UUID returned by the corresponding list or read operation. | |
| workspaceId | No | Workspace UUID from list_workspace_structure(kind=workspaces). Required for ambiguous creates and structure changes; omit to search all granted scopes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| tags | No | ||
| title | Yes | ||
| content | Yes | ||
| ownerId | Yes | ||
| folderId | Yes | ||
| metadata | No | ||
| createdAt | Yes | ||
| updatedAt | Yes | ||
| categoryId | Yes | ||
| folderName | No | ||
| visibility | Yes | ||
| contentJson | No |