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
| Param | Example | Type | Status |
|---|---|---|---|
id | "page_123" | String | Required |
options | { auth: {} } | Object | - |
id
The page’s id.
options
Set the request options for this call.