create Page
Creates a new page as a child of a database. This method allows you to create a page with custom properties and optional content blocks.
Return
The created Page object
Parameters
Reference to the parent database
Optional emoji or file to use as the page icon
Optional file to use as the page cover
List of property values for the page (required for database pages)
Optional list of blocks to add as page content
See also
Throws
if the database doesn't exist or the API request fails
Creates a new page as a child of a database using a block producer. This overload allows for more dynamic block creation using a BlockListProducer.
Return
The created Page object
Parameters
Reference to the parent database
Optional emoji or file to use as the page icon
Optional file to use as the page cover
List of property values for the page (required for database pages)
Block producer function to generate page content
See also
Creates a new page as a child of another page. This method creates a subpage with a title and optional content blocks.
Return
The created Page object
Parameters
Reference to the parent page
The title of the new page as a rich text list
Optional emoji or file to use as the page icon
Optional file to use as the page cover
Optional list of blocks to add as page content
See also
Throws
if the parent page doesn't exist or the API request fails
Creates a new page as a child of another page using a block producer. This overload allows for more dynamic block creation using a BlockListProducer.
Return
The created Page object
Parameters
Reference to the parent page
The title of the new page as a rich text list
Optional emoji or file to use as the page icon
Optional file to use as the page cover
Block producer function to generate page content