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

# Bulk update accounts

> Update up to 100 saved Apollo accounts synchronously.

`bulkUpdateAccounts` applies individual name, owner, stage, or custom-field
changes to as many as 100 accounts.

```ts automations/bulk-update-apollo-accounts.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { bulkUpdateAccounts } from "automate.ax/apollo"

export default automation("Assign Apollo accounts", () => {
  onHttpRequest({ scope: "automation" })
  bulkUpdateAccounts({
    updates: [
      { account: { id: "account-one" }, owner: "ada@example.com" },
      { account: { id: "account-two" }, stage: "Qualified" },
    ],
  })
})
```

| Input                                | Type                                              | Required            | Description                                       |
| ------------------------------------ | ------------------------------------------------- | ------------------- | ------------------------------------------------- |
| `updates`                            | `AccountUpdate[]`                                 | Yes                 | 1–100 updates.                                    |
| `updates[].account`                  | `ApolloReference`                                 | Yes                 | Target account.                                   |
| `updates[].name`                     | `string`                                          | At least one change | New account name.                                 |
| `updates[].stage`, `updates[].owner` | `ApolloReference`                                 | At least one change | New stage or owner.                               |
| `updates[].customFields`             | `Record<string, string>`                          | At least one change | Values keyed by field ID.                         |
| `account`                            | `string \| IntegrationAccountReference<"apollo">` | No                  | Connected workspace; defaults to project binding. |

Returns mutation receipts with `id` and optional `accountStageId`, `ownerId`,
and `crmOwnerId`. These receipts are intentionally sparser than a full account;
use `getAccount` when you need the complete updated record.
