Create or update category
save_categoryCreate a new product category or update an existing one by ID, and add or remove products. Requires name for creation; updates only specified fields.
Instructions
Without category_id creates a product category (name required); with category_id updates only the given fields. Can also add or remove products.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| rank | No | Position among siblings | |
| handle | No | ||
| metadata | No | Merged into existing metadata; an empty string deletes a key | |
| is_active | No | Visible in the storefront (new categories default to inactive in Medusa) | |
| category_id | No | ||
| description | No | ||
| is_internal | No | Hidden from the storefront | |
| add_products | No | Product IDs to add | |
| remove_products | No | Product IDs to remove | |
| parent_category_id | No | null moves it to the top level |