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

> Rename, archive, move, reorder, or watch a Trello list.

`updateList` changes selected list fields. Set `closed` to archive or reopen the list; set `boardId` to move it to another board.

```ts automations/archive-trello-list.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { updateList } from "automate.ax/trello"

export default automation("Archive Trello list", () => {
  onHttpRequest({ scope: "automation" })
  updateList({ listId: "list-id", closed: true })
})
```

Required `listId` is a stable ID. Provide at least one of `boardId: string`, `closed: boolean`, `name: string`, `position: "top" | "bottom" | number`, or `subscribed: boolean`. Position numbers must be nonnegative. Optional `account` defaults to the project binding.

Returns the updated `TrelloList`. Moving a list requires access to both boards.
