Add several items to a collection
add_collection_itemsSave up to 50 items into one existing collection in a single step — typically the drafts from draft_collection_items that the user kept. They are saved as DRAFTS by default and stay hidden from visitors. Set status to "published" only after the user explicitly asks for it; each published item is sent to the public site by collection auto-publish, so confirm that public change before calling. Each item is saved on its own, so one bad item never blocks the rest; the result lists any that failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The items to save (1-50), e.g. the drafts the user kept. | |
| status | No | Omit to save them all as DRAFTS. "published" only on an explicit instruction to go live. | |
| site_id | Yes | The site the collection belongs to | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| collection_type | Yes | The collection's slug, as list_collections returns it (e.g. "blog", "menu", "products", "faqs"). |