Restore version
restore_versionMake an earlier published version of a page live again for everyone, right away. The version that was live stays in the history and can be restored back. Confirm with the user first. Pass expectedCurrentId (the live version from list_versions) so a page that changed in the meantime is not overwritten.
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": {
"siteId": "<siteId>",
"deploymentId": "<deploymentId>"
},
"name": "restore_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Page id (siteId) returned by a publish tool or list_pages. | |
| deploymentId | Yes | The version to make live, from list_versions. | |
| expectedCurrentId | No | Optional: the version you saw as live. A page changed since then is refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | No | Page id. | |
| restored | No | true when the version was made live. | |
| deploymentId | No | The version that is live now. |