Edit modifier
hub_update_modifierRename a modifier and/or REPLACE its whole choice list. Passing choices is a full replacement: whatever you send becomes the list and anything you leave out is DELETED. Read get_modifier first and send the complete set back, keeping each choice’s id so prices and till history stay attached. To change one choice, use update_modifier_choice instead — it is safer and cannot drop the others. selectionType and allowQuantity cannot be changed; a modifier that needs a different kind of answer has to be created fresh. Renaming alone never breaks a rule; replacing choices can, and is refused with an explanation if it would.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"modifierId": "<modifierId>"
},
"name": "hub_update_modifier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name. Must stay unique for the merchant, ignoring case | |
| choices | No | The COMPLETE new choice list. Omitting this leaves the choices untouched | |
| modifierId | Yes | Modifier id from get_modifiers |