Skip to main content
POST
Rolling back never rewrites history. The chosen version’s HTML is copied into a new version, which becomes current, so every /v/{n} URL keeps meaning what it always meant. Needs a key with Pages write turned on, and the Page must belong to the key’s bot.

Authorization

string
required
Bearer mac_live_…

Path parameters

string
required
The Page’s id.

Body

integer
required
The kept version to copy.
string
Up to 500 characters, shown next to the new version in the app.

Response

boolean
true on success.
integer
The new version number. If the chosen version is identical to the current one, nothing new is stored and this is the current number.
integer
The version that was copied.
string
The Page’s link.
string
The permanent /v/{n} address of the new version.

Errors