Craft icon

Craft

Interact with your Craft documents via the API

Collection → Create Items

AI-generated

Summary

Create multiple new items in a specified Craft collection by providing the collection ID and an array of item objects.

Inputs

  • Collection (required) — Select or manually enter the ID of the Craft collection where the items will be created.
  • Items (required) — Provide a JSON array of item objects to create within the collection. Each item should include fields like title and properties according to the Craft schema.
  • Create Options — Optional flags for creation behavior, including allowing Craft to auto-create new select options found in the provided items.

Output shape

a list of created collection item objects corresponding to each input item

The output is a list with each entry representing the result of creating an item in the specified collection. Errors for individual items are returned if 'continueOnFail' is enabled.

Discussion