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

> Updates ClickUp Goal details and owners.

`clickUp.updateGoal` updates ClickUp Goal details and owners.

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

export default automation("Update Goal", () => {
  onDashboardRun({ title: "Update Goal" })
  clickUp.updateGoal({
    goalId: "goal-id",
    name: "Launch v2",
    dueDate: 1800000000000,
    description: "Ship the revised production release",
    addOwners: [42],
    removeOwners: [],
    color: "#7B68EE",
  })
})
```

## Inputs

`goalId`, name, description, color, millisecond due date, and owner IDs to add and remove. ClickUp's update endpoint requires the complete update body, including empty owner arrays. Every action accepts an optional static `account` binding.

## Output

Returns the updated `ClickUpGoal`.
