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

> Updates Webflow collection metadata and field groups.

`webflow.updateCollection` changes a collection's display name, singular name, slug, or field groups.

## Example

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

export default automation("Update collection", () => {
  onDashboardRun({ title: "Update collection" })
  webflow.updateCollection({
    collectionId: "collection-id",
    displayName: "Articles",
    singularName: "Article",
  })
})
```

## Inputs

Every input accepts a compatible signal. This action requires the `cms:write` OAuth scope. Provide at least one optional property.

| Field          | Type                            | Required | Description                            |
| -------------- | ------------------------------- | -------- | -------------------------------------- |
| `collectionId` | `string`                        | Yes      | Webflow collection ID.                 |
| `displayName`  | `string`                        | No       | New collection display name.           |
| `singularName` | `string`                        | No       | New singular item name.                |
| `slug`         | `string`                        | No       | New collection URL slug.               |
| `fieldGroups`  | `WebflowCollectionFieldGroup[]` | No       | Complete replacement field-group list. |

Each field group requires `displayName` and `fieldIds`; `description` is optional.

## Output

| Field          | Type                            | Description                          |
| -------------- | ------------------------------- | ------------------------------------ |
| `id`           | `string`                        | Collection ID.                       |
| `displayName`  | `string`                        | Collection display name.             |
| `singularName` | `string`                        | Singular item name.                  |
| `slug`         | `string`                        | Collection slug, when present.       |
| `fields`       | `WebflowCollectionField[]`      | Collection fields.                   |
| `fieldGroups`  | `WebflowCollectionFieldGroup[]` | Field groups, when present.          |
| `createdOn`    | `string`                        | Creation timestamp, when present.    |
| `lastUpdated`  | `string`                        | Last-update timestamp, when present. |
