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

> Rename an Apollo list or change its Book of Business setting.

`updateList` changes one list selected by exact name, ID, or `{ id }`.

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

export default automation("Rename an Apollo list", () => {
  onHttpRequest({ scope: "automation" })
  updateList({
    list: "2026 Targets",
    recordType: "accounts",
    name: "Priority Accounts",
  })
})
```

`list` is required. Supply `name`, `bookOfBusiness`, or both. `recordType` can
disambiguate lists with the same name and must not be `"contacts"` when enabling
Book of Business. Optional `account` selects the Apollo binding. Returns the
updated `ApolloList`; ambiguous names fail with the matching IDs.
