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

> Update selected fields on one Apollo task.

`updateTask` resolves a task and updates selected assignment, content, type, and
due-time fields.

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

export default automation("Reschedule an Apollo task", () => {
  onHttpRequest({ scope: "automation" })
  updateTask({ task: { id: "task-id" }, dueAt: "2026-08-07T17:00:00Z" })
})
```

`task` is required. Supply at least one of `callScript`, `contact`, `creator`,
`dueAt`, `note`, `priority`, `relevantFields`, `title`, `type`, or `user`.
Optional `account` selects the binding. Returns the updated `ApolloTask`.

For a scheduled task, Apollo must return its current creator unless you supply
`creator`; otherwise the action fails rather than silently resetting it.
