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

> Update a Trello label's name or color.

`trello.updateLabel` changes a reusable board label.

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

export default automation("Update Trello label", () => {
  onDashboardRun({ title: "Update Trello label" })
  trello.updateLabel({ labelId: "label-id", color: "green", name: "Ready" })
})
```

Provide `labelId` and at least one field to change. `name` accepts any string; use `""` to clear it. `color` accepts `"black"`, `"blue"`, `"green"`, `"lime"`, `"orange"`, `"pink"`, `"purple"`, `"red"`, `"sky"`, `"yellow"`, or `null` for a colorless label. Optional second argument `{ account }` selects a Trello binding.

Returns the updated `TrelloLabel`.
