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

# Publish collection items

> Publishes or unpublishes selected staged CMS items.

`webflow.publishCollectionItems` publishes or unpublishes selected staged CMS items.

## Example

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

export default automation("Publish collection items", () => {
  onDashboardRun({ title: "Publish collection items" })

  webflow.publishCollectionItems({
    collectionId: "collection-id",
    itemIds: ["item-id"],
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires the `cms:write` OAuth scope.

| Field          | Type                                         | Required | Description                |
| -------------- | -------------------------------------------- | -------- | -------------------------- |
| `itemIds`      | `string[]`                                   | No       | Webflow `itemIds` value.   |
| `items`        | `{ cmsLocaleIds?: string[]; id: string; }[]` | No       | Webflow `items` value.     |
| `collectionId` | `string`                                     | Yes      | Webflow CMS collection ID. |

## Output

Returns an object with the fields below. Automate.ax converts provider `Date` values to ISO 8601 strings.

| Field              | Type       | Description                       |
| ------------------ | ---------- | --------------------------------- |
| `publishedItemIds` | `string[]` | Webflow `publishedItemIds` value. |
| `errors`           | `string[]` | Webflow errors.                   |
