Create or update customer group
save_customer_groupCreate or rename a customer group, then add or remove customers from it via the Medusa Admin API.
Instructions
Without group_id creates a group (name required); with group_id renames it. Can add/remove customers.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_customer_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| group_id | No | ||
| metadata | No | Merged into existing metadata; an empty string deletes a key | |
| add_customers | No | Customer IDs to add | |
| remove_customers | No | Customer IDs to remove |