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

> Updates quantity or finite/infinite inventory mode for one SKU.

`webflow.updateInventory` updates quantity or finite/infinite inventory mode for one SKU.

## Example

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

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

  webflow.updateInventory({
    skuCollectionId: "sku-collection-id",
    skuId: "sku-id",
    inventoryType: "finite",
    quantity: 12,
  })
})
```

## Inputs

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

| Field             | Type                                          | Required | Description                     |
| ----------------- | --------------------------------------------- | -------- | ------------------------------- |
| `inventoryType`   | `Webflow.InventoryUpdateRequestInventoryType` | Yes      | Webflow `inventoryType` value.  |
| `updateQuantity`  | `number`                                      | No       | Webflow `updateQuantity` value. |
| `quantity`        | `number`                                      | No       | Webflow `quantity` value.       |
| `skuCollectionId` | `string`                                      | Yes      | Webflow SKU collection ID.      |
| `skuId`           | `string`                                      | Yes      | Webflow SKU 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.            |
| `quantity`      | `number`                             | Webflow `quantity` value.      |
| `inventoryType` | `Webflow.InventoryItemInventoryType` | Webflow `inventoryType` value. |
