Skip to main content
POST
Publish the head 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

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

Minimum string length: 1
version
integer

Version returned by websiteSourceCode.head.check. Publishing refuses when the draft changed after that check.

Required range: x <= 9007199254740991

Response

The published version now live and its serving deployment.

websiteId
string
required

Id of the website.

publishedVersion
integer
required

Source version now live.

formattingApplied
boolean
required

true when canonical formatting was committed as a new head version before publishing; re-read affected files before further edits.

deployment
object

The ready deployment now serving the site.