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

> Update selected fields on an Apollo deal.

`apollo.updateDeal` changes selected fields on one deal.

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

export default automation("Advance a deal", () => {
  onDashboardRun({ title: "Advance a deal" })
  apollo.updateDeal({ deal: "Acme expansion", stage: "Contract sent" })
})
```

`deal` is required. Set at least one of `name`, `owner`, `stage`, `amount`, `closedDate`, or `customFields`. Apollo does not support moving a deal to a different account through this endpoint. Returns the updated `ApolloDeal`.
