Skip to main content
POST
Roll back to a previous version

Authorizations

Authorization
string
header
required

Cactal API key. Create one in the dashboard or via POST /apiKeys. The plaintext key is shown once at creation.

Body

application/json
websiteId
string
required
Minimum string length: 1
leaseToken
string
required
Minimum string length: 1
version
integer
required
Required range: x <= 9007199254740991

Response

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

websiteId
string
required

Id of the website.

publishedVersion
integer
required

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

deployment
object

The ready deployment now serving the site.