Publishing

Roll back to a previous version

Validates and republishes an earlier version as a new head and published version, preserving history. Takes the edit lease when no leaseToken is sent.

post/websiteSourceCode/published/rollback-version

Request

  • Base URL: https://api.cactal.ai/v1
  • URL: https://api.cactal.ai/v1/websiteSourceCode/published/rollback-version
  • Auth: HTTP bearer

Request body

websiteIdstring required
leaseTokenstring

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

versioninteger required

Response

The re-published version now live and its serving deployment.

websiteIdstring required

Id of the website.

publishedVersioninteger required

Source version now live: a new head version whose files match the requested version.

Changes

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