> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# pages_update_markdown

> Replace a page's content with Markdown, which Notion parses into blocks. This replaces the whole body, so read it first if you mean to edit rather than overwrite.

<div className="tool-route"><span className="tool-row-method" data-method="PATCH">PATCH</span><code>{"https://api.notion.com/v1/pages/{pageId}/markdown"}</code></div>

```python notion_pages_update_markdown.py theme={null}
from charter.packs import notion

result = await notion.pages_update_markdown.ainvoke({"pageId": ..., "body": ...})
```

<Note>
  Requires `Update content`.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                          | Type     | Description         |
  | -------------------------------------------------------------- | -------- | ------------------- |
  | `pageId` <span className="required" title="required">\*</span> | `string` | The ID of the page. |
</div>

## Body

<div className="reference-table">
  | Field                                                        | Type                                                                                 | Description      |
  | ------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ---------------- |
  | `body` <span className="required" title="required">\*</span> | [PageMarkdownUpdateBody](/charter/charter/packs/notion/pages/objects#pagemarkdownupdatebody) | The new content. |
</div>
