Publishing

Restore head to a previous state

Copies an earlier version or published into a new head without publishing or rewriting history. Takes the edit lease when no leaseToken is sent.

post/websiteSourceCode/head/restore

Request

  • Base URL: https://api.cactal.ai/v1
  • URL: https://api.cactal.ai/v1/websiteSourceCode/head/restore
  • Auth: HTTP bearer

Request body

websiteIdstring required
tostring required

State to restore to head: a source version number or published.

leaseTokenstring

Omit to have Cactal take the edit lease for you; pass a token from websiteSourceCode.lease.acquire to take over from another editor.

Response

The new head version matching the restored source.

versioninteger required

Head version after the edit: the previous head plus one, or the unchanged head when changed is false.

changedboolean required

false when the edit was a no-op and no new version was created.

Changes

No recorded changes to this operation across all 1 revision of this API.