update_section
Update specific sections in Notion pages by heading name. Replace content from a heading to the next section boundary using markdown, optimizing edits in large documents.
Instructions
Update a section of a page by heading name. Finds the heading, replaces everything from that heading to the next section boundary. For H1 headings, the section extends to the next heading of any level. For H2/H3 headings, it extends to the next heading of the same or higher level. Include the heading itself in the markdown. More efficient than replace_content for editing one section of a large page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Page ID | |
| heading | Yes | Heading text to find (case-insensitive) | |
| markdown | Yes | Replacement markdown including the heading |