View as Markdown
Webflow icon

Webflow ACTION

Update Item Inventory

Update the inventory of a specific item. See the documentation
  • Action
  • Writes data
  • Destructive
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Webflow account once, then configure and run Update Item Inventory from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "webflow-update-item-inventory",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    webflow: { authProvisionId: "apn_xxxxxxx" },
    siteId: "Site",
    collectionId: "Collection",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Update Item Inventory inputs
Property Type Description
siteId Site string
Select a site or provide a custom site ID.
Required Dynamic
collectionId Collection string
Select a collection or provide a custom collection ID.
Required Dynamic
itemId Item string
Select an item or provide a custom item ID.
Required Dynamic
inventoryType Inventory Type string
The type of the inventory.
Required
quantity Quantity integer
If specified, sets quantity to this value. Can only be used with the finite inventory type, and if Update Quantity is not specified.
Optional
updateQuantity Update Quantity integer
If specified, adds this value to the current quantity. Can only be used with the finite inventory type, and if Quantity is not specified.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
webflow-update-item-inventory
Version
2.0.1
App
Webflow
Authentication
OAuth
Read-only
No
Destructive
Yes
Open world
Yes