pages.update
Puck Pages is experimental and may change in a future release.
Update a page. Use it to change the page’s path.
await puck.pages.update("page_123", { path: "/company" });
// { id: "page_123", path: "/company", data: { root: { props: {} }, content: [] }, version: 3, publishedVersion: 2, status: "draft", createdAt: "2026-10-30T12:00:00.000Z", createdBy: "user_123" }Returns the updated Page.
Args
| Param | Example | Type | Status |
|---|---|---|---|
id | "page_123" | String | Required |
params | { path: "/company" } | Object | Required |
options | { auth: {} } | Object | - |
id
The page’s id.
params
What to change on the page.
| Param | Example | Type | Status |
|---|---|---|---|
path | path: "/company" | String | Required |
path
The page’s new path.
options
Set the request options for this call.