Create or update collection
save_collectionCreate or update a Medusa product collection: omit collection_id to create (title required) or include it to update, then add or remove product IDs.
Instructions
Without collection_id creates a collection (title required); with collection_id updates it. Can add or remove products (a product belongs to at most one collection).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| handle | No | ||
| metadata | No | Merged into existing metadata; an empty string deletes a key | |
| add_products | No | Product IDs to add | |
| collection_id | No | ||
| remove_products | No | Product IDs to remove |