Craft icon

Craft

Interact with your Craft documents via the API

Collection → Update Items

AI-generated

Summary

Update multiple items within a specified Craft collection by providing their IDs and new properties, optionally allowing new select options to be auto-created.

Inputs

  • Collection (required) — The Craft collection to update, selected from a list of existing collections or entered manually as a collection ID.
  • Items to Update (required) — A JSON array of objects each containing an item's ID and the properties to update for that item, e.g., [{"ID":"1","properties": { ... }}].
  • Update Options — Additional options affecting the update behavior, such as whether to allow new select options to be automatically created in Craft.

Output shape

a list of results, each representing the response for an updated collection item, paired with the input item index

If an error occurs for an item and 'Continue On Fail' is enabled, error details are returned for that item; otherwise, the operation throws an error.

Discussion