What it does
Copy an older version into a new version. History stays linear.
Plans
Works on every plan: Free, Basic, Pro and Ultra.
Parameters
| Name | Type | About |
|---|---|---|
site_idrequired | string | The id of the site. list_sites gives the ids of your sites. |
versionrequired | integer | The version number to go back to. It becomes the new live version. |
message | string | A short note for the version history, like a commit message. |
verbose | boolean | Default true: list every file and page of the version. false lists only what this call changed, plus draft totals. |
idempotency_key | string | Any unique string (1-200 printable ASCII). A retry with the same key and arguments returns the first call's result instead of running again. Same as the Idempotency-Key header. |
Example
Call rollback_site with these arguments:
{
"site_id": "01a1…",
"version": 11,
"message": "Back to the old menu"
}
Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.
Related guides
- Drafts, versions and rollbackEvery publish is a version you can go back to.