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

> Updates product content, settings, variants, or draft state.

`webflow.updateProduct` updates product content, settings, variants, or draft state.

## Example

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

export default automation("Update product", () => {
  onDashboardRun({ title: "Update product" })

  webflow.updateProduct({
    siteId: "site-id",
    productId: "product-id",
    product: {
      fieldData: { name: "Updated T-shirt", slug: "updated-t-shirt" },
    },
  })
})
```

## Inputs

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

| Field           | Type                    | Required | Description                    |
| --------------- | ----------------------- | -------- | ------------------------------ |
| `publishStatus` | `Webflow.PublishStatus` | No       | Webflow `publishStatus` value. |
| `product`       | `object`                | No       | Webflow `product` value.       |
| `sku`           | `object`                | No       | Webflow `sku` value.           |
| `siteId`        | `string`                | Yes      | Webflow site ID.               |
| `productId`     | `string`                | Yes      | Webflow product ID.            |

## Output

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

| Field           | Type                       | Description                    |
| --------------- | -------------------------- | ------------------------------ |
| `id`            | `string`                   | Webflow `id` value.            |
| `cmsLocaleId`   | `string`                   | Optional CMS locale ID.        |
| `lastPublished` | `string`                   | Webflow `lastPublished` value. |
| `lastUpdated`   | `string`                   | Webflow `lastUpdated` value.   |
| `createdOn`     | `string`                   | Webflow `createdOn` value.     |
| `isArchived`    | `boolean`                  | Webflow `isArchived` value.    |
| `isDraft`       | `boolean`                  | Webflow `isDraft` value.       |
| `fieldData`     | `Webflow.ProductFieldData` | Webflow `fieldData` value.     |
