> ## 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.

# blocks_update

> Update a block's content, or trash and restore it with `in_trash`. Send the field matching the block's existing type: a type cannot be changed here, and neither can children — append or delete those instead. Whatever is sent replaces the whole value, so `rich_text` replaces the entire array rather than adding to it.

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

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

result = await notion.blocks_update.ainvoke({"blockId": ..., "body": ...})
```

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

<Warning>
  This tool's JSON schema is 64 KB, because it models the whole resource this endpoint writes.
  That is more context than most tasks. Narrow it at the call site
  with [`Tool.derived`](/charter/charter/reference/tool#tool-derived):

  ```python theme={null}
  narrowed = notion.blocks_update.derived(
      name="blocks_update_narrowed",
      drop={"body.numbered_list_item", "body.heading_4", "body.heading_3"},
  )
  ```

  Those are its heaviest branches by schema size, not a recommendation: which ones you can spare is yours to decide. The tool underneath is unchanged.
  See [Projections](/charter/charter/tools/projections).
</Warning>

## Path parameters

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

## Body

<div className="reference-table">
  | Field                                                        | Type                                                                    | Description             |
  | ------------------------------------------------------------ | ----------------------------------------------------------------------- | ----------------------- |
  | `body` <span className="required" title="required">\*</span> | [BlockUpdateBody](/charter/charter/packs/notion/blocks/objects#blockupdatebody) | The content to replace. |
</div>
