Update Modifier Group
curl --request PUT \
--url 'https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/' \
--header 'Content-Type: application/json' \
--data '
{
"modifier_groups": [
{}
]
}
'import requests
url = "https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/"
payload = { "modifier_groups": [{}] }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({modifier_groups: [{}]})
};
fetch('https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'modifier_groups' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/"
payload := strings.NewReader("{\n \"modifier_groups\": [\n {}\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/")
.header("Content-Type", "application/json")
.body("{\n \"modifier_groups\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"modifier_groups\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"total_updated_records": 123
}Modifiers
Update Modifier Group
This endpoint updates the properties of existing modifier groups. You can modify settings like name, description, quantity limits, and other configuration options.
PUT
{micro_service_base_url}
/
inventory
/
stores
/
{store_id}
/
modifier-groups
/
Update Modifier Group
curl --request PUT \
--url 'https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/' \
--header 'Content-Type: application/json' \
--data '
{
"modifier_groups": [
{}
]
}
'import requests
url = "https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/"
payload = { "modifier_groups": [{}] }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({modifier_groups: [{}]})
};
fetch('https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'modifier_groups' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/"
payload := strings.NewReader("{\n \"modifier_groups\": [\n {}\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/")
.header("Content-Type", "application/json")
.body("{\n \"modifier_groups\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/{{micro_service_base_url}}/inventory/stores/{{store_id}}/modifier-groups/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"modifier_groups\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"total_updated_records": 123
}This endpoint allows you to update the configuration of existing modifier groups. You can change various properties such as the name, description, quantity constraints, and status while preserving existing options and mappings.
Updates to modifier groups will immediately affect how customers see and interact with customization options for linked products.
Path Parameters
string
required
The unique identifier of the store
Body
array
required
Array of modifier group objects to update
Show Modifier Group Update Object
Show Modifier Group Update Object
Request Example
[
{
"id": "{{modifier_group_id}}",
"name": "MG Test 3 - Updated",
"description": "Modifier group for drinks",
"store_id": "449235c1-3d04-4519-998b-40d2a621e5e0",
"min_quantity": 0,
"max_quantity": 2,
"precedence": 0,
"option_type": "Customization",
"max_free_options": 0,
"max_options_qty": 2,
"status": "active"
}
]
Response
number
The number of modifier groups that were successfully updated
Response Example
{
"total_updated_records": 1
}
You can update multiple modifier groups in a single request by including multiple objects in the array.
Ensure that min_quantity does not exceed max_quantity, and that the changes align with your current menu structure to avoid customer confusion.
Setting status to “inactive” will hide the modifier group from customer view without deleting it, allowing you to reactivate it later if needed.
⌘I

