pagehive

rollback_site

Copy an older version into a new version.

Publish and versionsChanges dataAll plans

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

NameTypeAbout
site_idrequiredstringThe id of the site. list_sites gives the ids of your sites.
versionrequiredintegerThe version number to go back to. It becomes the new live version.
messagestringA short note for the version history, like a commit message.
verbosebooleanDefault true: list every file and page of the version. false lists only what this call changed, plus draft totals.
idempotency_keystringAny 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