updatePage

abstract suspend fun updatePage(id: UuidString, icon: EmojiOrFile? = null, cover: File? = null, properties: PropertyValueList): Page

Updates the properties of an existing page. This method allows you to modify the page's icon, cover, and properties. Note that page content cannot be updated using this method - use KNotionBlocks instead.

Return

The updated Page object

Parameters

id

The unique identifier of the page to update

icon

Optional new emoji or file to use as the page icon

cover

Optional new file to use as the page cover

properties

New property values to set on the page

See also

Throws

NotionApiException

if the page doesn't exist or the API request fails