Update Page
update_page · Tools · Pages
Rename, hide or show a page, or change what it opens on
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
default_child_route_slug | string | No | For a space, which child page it opens on. Must be one of its children. |
expected_revision | integer | Yes | The revision list_pages returned. |
hidden | boolean | No | true takes the page out of the sidebar without deleting it; false shows it again. |
icon | string | No | An icon name such as ph:sun-horizon. |
name | string | No | What the page is called. |
route_slug | string | Yes | The page to change, by its route slug. |
Renames a page, changes its icon, hides it from the sidebar or shows it again, or sets which child a space opens on.
The route slug is deliberately not changeable. It is how the page is linked to, and rewriting it would break every link and saved reference pointing at the page. Create a new page if the address has to change.
default_child_route_slug must name one of that space's own children; a value naming nothing is refused.
hidden: true takes the page out of the sidebar without deleting it: everything on it stays, its address still opens it, and it still counts toward the page limit. hidden: false puts it back. A panel whose only pages are hidden is not on the page list, so it can be deleted. Hiding the last top-level page left on the sidebar is refused.