Skip to main content
POST
Restore head to a previous state

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
to
string
required

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

Pattern: ^(published|[1-9][0-9]*)$
leaseToken
string
required
Minimum string length: 1

Response

The new head version matching the restored source.

version
integer
required

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

changed
boolean
required

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