Publishing

Validate the head source

Runs the publish-time framework quality gate without changing source: format, typecheck, lint, build, and a server-render of every page using placeholder content synthesized from the CMS schema. Failures return ok: false with diagnostics, and pages that compiled but threw while rendering in renderFailures. No lease is required and no CMS content is read, so the outcome depends only on source and schema.

post/websiteSourceCode/head/check

Request

  • Base URL: https://api.cactal.ai/v1
  • URL: https://api.cactal.ai/v1/websiteSourceCode/head/check
  • Auth: HTTP bearer

Request body

websiteIdstring required

Response

The quality-gate outcome for the checked head version.

versioninteger required

Source version that was checked.

okboolean required

Whether the source passed validation and compiled.

messagestring

Failure summary. Present only when ok is false.

detailsobject

Framework diagnostics such as per-page errors. Present only for failures that carry details.

notesstring[]

Non-blocking observations about the draft, such as a form that emails nobody. Present only when there are any.

Changes

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