Modifier Groups
Update a modifier group
Changed onReplace a modifier group. The request carries every field, and null clears a value unless the field says otherwise.
Required scopes: business/catalogue:read, business/catalogue:write
put/v1/modifier_groups/{modifier_group_id}
Request
- Base URLhttps://api.yoco.com
- AuthHTTP bearer
Path parameters
modifier_group_idstring required
The unique identifier of the modifier group.
Request body
Example request
{
"max_selections": 1,
"min_selections": 0,
"modifiers": [
{
"fixed_price": {
"amount": 1500,
"currency": "ZAR"
},
"id": "1729001234890-cc33dd44-9876-4123-aabb-2233445566ff",
"is_selected_by_default": false,
"name": "Chips",
"ordinal": 1,
"pricing_strategy": "fixed_price"
}
],
"name": "Side Orders"
}Response
Successful Response
Example response
{
"created_at": "2024-11-19T15:27:02+00:00",
"id": "1729001234567-aa11bb22-3344-4cdd-99ee-1122334455ff",
"max_selections": 2,
"min_selections": 0,
"modifiers": [
{
"fixed_price": {
"amount": 500,
"currency": "ZAR"
},
"id": "1729001234890-cc33dd44-9876-4123-aabb-2233445566ff",
"is_selected_by_default": false,
"modifier_group_id": "1729001234567-aa11bb22-3344-4cdd-99ee-1122334455ff",
"name": "Chips",
"ordinal": 1,
"pricing_strategy": "fixed_price",
"type": "product",
"variant_id": "1719321844551-c61b8a54-902e-4f3d-9d70-8b1e2f5b1a90:small"
}
],
"name": "Side Orders"
}Changes
- breaking
the
///request property's minLength was increased from0to1 - breaking
added the pattern
^[A-Za-z0-9:-]+$to the request property///
- breaking
- info
endpoint added
- info