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

# Create Goal

> Creates a Goal in a ClickUp Workspace.

`clickUp.createGoal` creates a Goal in a ClickUp Workspace.

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

export default automation("Create Goal", () => {
  onDashboardRun({ title: "Create Goal" })
  clickUp.createGoal({
    workspaceId: "workspace-id",
    name: "Launch",
    dueDate: 1800000000000,
    description: "Ship the first production release",
    multipleOwners: false,
    owners: [42],
    color: "#7B68EE",
  })
})
```

## Inputs

`workspaceId`, non-empty `name`, description, color, millisecond `dueDate`, owner IDs, and multiple-owner mode. ClickUp requires every field, including empty `owners`. Every action accepts an optional static `account` binding.

## Output

Returns the created `ClickUpGoal`.
