Hi all,
We’re using the NPM library webflow-api webflow-api - npm, which is based on js-webflow-api, which is created and maintained by the Webflow team. GitHub - webflow/js-webflow-api: Node.js SDK for the Webflow Data API
We’re able to query the collection and add items but we’re not able to use the updateItem function.
Sample code:
const updatedItem = await webflow.collections.items.updateItem(process.env.WEBFLOW_COLLECTION_ID, itemId, updatedItemObject)
The error: An error occurred while updating item in Webflow collection JsonError: Missing required key "id"
However, note the second paramater itemId
is being passed as expected. We confirmed the value is correct at that point.
Any tips would be much appreciated. Thanks much in advance.