Roll back a site
rollback_siteRoll back your live site to any earlier published version instantly using the site slug and version ID.
Instructions
Flip a previously-published version of a site live again, instantly. Every publish is a version; pass the versionId to roll back to. Requires an API key (owned sites only).
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": {
"slug": "<slug>",
"versionId": "<versionId>"
},
"name": "rollback_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The site slug to roll back. | |
| versionId | Yes | The version id to make live (from an earlier publish). | |
| apiKey | No | shiply API key (shp_…). Falls back to SHIPLY_API_KEY. |