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