Contents

Create Page

create_page · Tools · Pages

Add a board page or a page showing a panel

Parameters

NameTypeRequiredDescription
expected_revisionintegerYesThe revision list_pages returned.
iconstringNoAn icon name such as ph:sun-horizon. Defaults to a plain page icon, or ph:app-window for a page showing a panel.
inside_spacestringNoA space page's route slug, to nest this page inside it.
namestringYesWhat the page is called.
panelstringNoA panel id from panel_list or panel_create. The page shows that panel instead of an empty board.
route_slugstringNoThe slug the page is reached by: lowercase letters, digits and single hyphens, up to 64 characters; one that is not is refused. Derived from the name when left out.

Adds a page to the sidebar: an empty board, which widgets can then be placed on with add_page_widget, or, with panel, a page showing that panel.

Give panel a panel's id, as panel_create or panel_list gives it, to add a page showing the panel. Its icon defaults to ph:app-window. An id naming no panel of the workspace is refused, and the board is not written.

Give inside_space a space page's route slug to nest the new page inside it. Spaces are one level deep, so a page inside a space cannot itself hold pages.

A route_slug you give must be lowercase letters, digits and single hyphens, up to 64 characters, or the call is refused. The route slug is derived from the name when not given, and corrected if it collides with a sibling or is reserved — so read the slug back from the result rather than assuming the one you asked for. The result's route_slug is the slug of the page added, inside a space too.

State the revision list_pages returned. If the board moved in between, the write is refused rather than landing on a board you did not read.