pagehive

list_site_versions

List site versions, newest first.

Publish and versionsRead-onlyAll plansUpdated

What it does

List site versions, newest first. Every draft write, publish and rollback stores one. Each version has published_at, set when it went live and null for a draft write. published true lists only published versions. Older versions are pruned by plan (guide topic versions-and-undo). limit defaults to 200 and cannot exceed 200. before, a version number, reads the next older page. next_before is set when another page remains.

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.
limitintegerHow many versions to return. Default and maximum 200.
beforeintegerA version number. Returns older versions than that one, to page back.
publishedbooleantrue lists only versions that went live (publishes and rollbacks), the ones to roll back to.
cursorstringnext_cursor from the previous page of this tool, to read the next page. Send the other arguments as on the first call; leave out the paging arguments the cursor replaces.

Example

Call list_site_versions with these arguments:

{
  "site_id": "01a1…",
  "limit": 10
}

Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.

Related guides