Roll back to a previous version
websiteSourceCode_published_rollbackValidates and republishes an earlier version as a new head and published version, preserving history. Takes the edit lease when no leaseToken is sent.
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": {
"websiteId": "<websiteId>",
"version": "<version>"
},
"name": "websiteSourceCode_published_rollback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | ||
| websiteId | Yes | ||
| leaseToken | No | Omit to have Cactal take the edit lease for you; pass a token from websiteSourceCode.lease.acquire to take over from another editor. |