Restore a version
restore_versionBring back an earlier version of one of the owner's pages as its current one (Pro), keeping its link, name and lock; like update_page it returns the new version's status, which can be held too. Use it only for the owner's own pages, as they ask, under ShareHTML's rules: https://sharehtml.org/acceptable-use.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"page_id": "<page_id>",
"version": "<version>"
},
"name": "restore_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | The page’s id, as publish_page or list_pages gave it. | |
| version | Yes | The number of the earlier version to bring back; get_page gives the current version and how many are kept. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| name | Yes | ||
| title | Yes | ||
| views | Yes | ||
| access | Yes | ||
| listed | Yes | ||
| notice | No | ||
| status | Yes | ||
| invited | No | ||
| reasons | No | ||
| version | Yes | ||
| expiresAt | Yes | ||
| updatedAt | Yes | ||
| versionsKept | No | ||
| viewsThisMonth | No |