Contents

Update Page

update_page · Tools · Pages

Rename, hide or show a page, or change what it opens on

Parameters

NameTypeRequiredDescription
default_child_route_slugstringNoFor a space, which child page it opens on. Must be one of its children.
expected_revisionintegerYesThe revision list_pages returned.
hiddenbooleanNotrue takes the page out of the sidebar without deleting it; false shows it again.
iconstringNoAn icon name such as ph:sun-horizon.
namestringNoWhat the page is called.
route_slugstringYesThe 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.