Generate experiences with Puck AI
Read docs
CloudAPI referencecloud-clientServer APIspages.publish

pages.publish

Puck Pages is experimental and may change in a future release.

Publish a version of a page.

await puck.pages.publish("page_123", 2);
// { id: "page_123", path: "/about", data: { root: { props: {} }, content: [] }, version: 2, publishedVersion: 2, status: "published", createdAt: "2026-10-30T12:00:00.000Z", createdBy: "user_123" }

Returns the published Page.

Args

ParamExampleTypeStatus
id"page_123"StringRequired
version2NumberRequired
options{ auth: {} }Object-

id

The page’s id.

version

The number of the version to publish.

options

Set the request options for this call.