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

pages.unpublish

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

Unpublish a page.

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

Returns the Page at its latest version.

Args

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

id

The page’s id.

options

Set the request options for this call.