Movatterモバイル変換


[0]ホーム

URL:


Update page

patch
https://api.notion.com/v1/pages/

Use this API to modify attributes of a Notion page, such as its properties, icon, or cover.

Use cases

Updating properties

To change the properties of a page in a data source, use the properties body parameter. This parameter can only be used if the page's parent is adata source, aside from updating thetitle of a page outside of a data source.

The page’s properties schema must match the parent data source's properties.

Setting the icon, cover, or "in trash" status

This endpoint can be used to update any page icon or cover, and can be used to archive or restore any page.

Locking and unlocking a page

Use theis_locked boolean parameter to lock or unlock the page from being further edited in the Notion app UI. Note that this setting doesn't affect the ability to update the page using the API.

Applying a page template

Use thetemplate body parameter object to apply atemplate to an existing page. This can either be the parent data source's default template (type=default), or a specific template (type=template_id).

After the API request finishes, Notion's systems merge the content and properties from your chosen template into the current page.

For more information, visit our related guide:Creating pages from templates.

Erasing content from a page

Use theerase_content flag to delete all block children of the current page.Use caution with this parameter, since this is a destructive action thatcannot be reversed using the API.

The main use case is for applying atemplate in scenarios where it makes sense to clear all of the existing page content and replace it with the template page's content, instead of appending the template content to what's already on the page.

Adding content to a page

To add content, use theappend block children API instead. Thepage_id can be passed as theblock_id when adding block children to the page.

General behavior

Returns the updatedpage object.

📘

Requirements

Your integration must haveupdate content capabilities on the target page in order to call this endpoint. To update your integrations capabilities, navigation to theMy integrations dashboard, select your integration, go to theCapabilities tab, and update your settings as needed.

Attempting a query without update content capabilities returns an HTTP response with a 403 status code.

🚧

Limitations

Errors

Each Public API endpoint can return several possible error codes. See theError codes section of the Status codes documentation for more information.

Language

[8]ページ先頭

©2009-2025 Movatter.jp