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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Update Notion block

> Update a supported Notion block body or its trash state.

`notion.updateBlock` update a supported Notion block body or its trash state.

## Example

```ts automations/notion-update-block.automation.ts theme={null}
import { automation, onSchedule } from "automate.ax"
import { notion } from "automate.ax/notion"

export default automation("Update Notion block", () => {
  onSchedule({ schedule: "0 9 * * *" })

  notion.updateBlock({ block_id: "block-id", in_trash: false })
})
```

## Inputs

Provide `block_id` plus fields for exactly one current block variant, or `in_trash` to restore or trash it. The retired `archived` field is rejected. Every input accepts a compatible signal, and an optional second argument can select a named account.

## Output

Returns the updated full or partial `block` object.

A 500 response is not retried because repeating a mutation could duplicate side effects. Rate limits and service overload responses remain safe to retry.
