Notion
Update Notion Page Content
Rewrite a Notion page's body, find and replace text in it, or insert content at the start or end — using full Notion-flavoured markdown. Unlike Notion Append Block this can replace existing content, not only add to it.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| identifieraccount · required | account | required | — |
| pageIdstring · required | string | required | Page to change. Select a page or insert its ID or URL. |
| modestring · required | string | required | One of: Default: |
| markdownstring · optional | string | optional | For Replace or Insert. Notion-flavoured markdown: headings, toggles, callouts, columns, tables, embeds and mentions. |
| contentUpdatesobject · optional | object | optional | For Find and replace: [{"old_str":"exact text on the page","new_str":"replacement","replace_all_matches":false}] |
| positionstring · optional | string | optional | One of: Default: |
| allowDeletingContentboolean · optional | boolean | optional | Let the change delete child pages or databases. Off by default. |
Response schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"object": {
"type": "string"
},
"markdown": {
"type": "string"
},
"truncated": {
"type": "boolean"
}
}
}