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

# Set account owner

> Assign one Apollo owner to one or more saved accounts.

`setAccountOwner` assigns the same workspace user to any number of accounts.

```ts automations/set-apollo-account-owner.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { setAccountOwner } from "automate.ax/apollo"

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

| Input      | Type                                              | Required | Description                                          |
| ---------- | ------------------------------------------------- | -------- | ---------------------------------------------------- |
| `accounts` | `ApolloReference[]`                               | Yes      | One or more account IDs, names/domains, or `{ id }`. |
| `owner`    | `ApolloReference`                                 | Yes      | User ID, exact email/name, or `{ id }`.              |
| `account`  | `string \| IntegrationAccountReference<"apollo">` | No       | Connected workspace; defaults to project binding.    |

Returns one sparse mutation receipt per account with `id` and optional owner,
CRM-owner, and stage IDs.
