Publishing

Publish the head version

Validates, builds, and publishes head. Canonical formatting may create a new head first. Pass the version the check returned to refuse publishing a draft that changed since. Takes the edit lease when no leaseToken is sent.

post/websiteSourceCode/head/publish

Request

  • Base URL: https://api.cactal.ai/v1
  • URL: https://api.cactal.ai/v1/websiteSourceCode/head/publish
  • 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

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

Response

The published version now live and its serving deployment.

websiteIdstring required

Id of the website.

publishedVersioninteger required

Source version now live.

formattingAppliedboolean required

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

Changes

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