> ## Documentation Index
> Fetch the complete documentation index at: https://developer.lulacommerce.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

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.

<Info>
  Updates to modifier groups will immediately affect how customers see and interact with customization options for linked products.
</Info>

### Path Parameters

<ParamField path="store_id" type="string" required>
  The unique identifier of the store
</ParamField>

### Body

<ParamField body="modifier_groups" type="array" required>
  Array of modifier group objects to update

  <Expandable title="Modifier Group Update Object">
    <ParamField name="id" type="string" required>
      The unique identifier of the modifier group to update
    </ParamField>

    <ParamField name="name" type="string" required>
      Updated name for the modifier group
    </ParamField>

    <ParamField name="description" type="string" required>
      Updated description for the modifier group
    </ParamField>

    <ParamField name="store_id" type="string" required>
      The store identifier (must match the path parameter)
    </ParamField>

    <ParamField name="min_quantity" type="number" required>
      Updated minimum number of options customer must select
    </ParamField>

    <ParamField name="max_quantity" type="number" required>
      Updated maximum number of options customer can select
    </ParamField>

    <ParamField name="precedence" type="number" default={0}>
      Updated display order precedence
    </ParamField>

    <ParamField name="option_type" type="string" required>
      Updated option type (e.g., "Customization")
    </ParamField>

    <ParamField name="max_free_options" type="number" default={0}>
      Updated maximum number of free options allowed
    </ParamField>

    <ParamField name="max_options_qty" type="number" required>
      Updated maximum quantity for each option
    </ParamField>

    <ParamField name="status" type="string" required>
      Updated status. Values: "active" or "inactive"
    </ParamField>
  </Expandable>
</ParamField>

### Request Example

```json theme={null}
[
  {
    "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

<ResponseField name="total_updated_records" type="number">
  The number of modifier groups that were successfully updated
</ResponseField>

### Response Example

```json theme={null}
{
  "total_updated_records": 1
}
```

<Tip>
  You can update multiple modifier groups in a single request by including multiple objects in the array.
</Tip>

<Warning>
  Ensure that min\_quantity does not exceed max\_quantity, and that the changes align with your current menu structure to avoid customer confusion.
</Warning>

<Note>
  Setting status to "inactive" will hide the modifier group from customer view without deleting it, allowing you to reactivate it later if needed.
</Note>
