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

# Batch manage Notion agents

> Submit multiple status, credit-limit, or delete operations as one task.

`notion.batchManageAgents` submit multiple status, credit-limit, or delete operations as one task.

## Example

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

export default automation("Batch manage Notion agents", () => {
  onSchedule({ schedule: "0 9 * * *" })

  notion.batchManageAgents({
    operations: [
      {
        action: "update_status",
        agent_id: "agent-id",
        fields: { status: "active" },
      },
    ],
  })
})
```

## Inputs

`operations` is required. Each item is exactly one documented update-status, update-credit-limit, or delete variant. Every input accepts a compatible signal, and an optional second argument can select a named account.

## Output

Returns a queued `async_task`. Poll it with `getAsyncTask` using the returned ID.
