---
title: "Update option group"
method: PUT
path: "/menu/{locale}/options/{id}"
tags: ["Menu"]
---

# Update option group

`PUT /menu/{locale}/options/{id}`

Updates an existing option group. Partial update — only provided fields are changed. Can add new items via the items array.

## Path parameters

- `locale` integer, required
- `id` integer, required

## Request body

- UpdateOptionGroupRequest
  - `name` string
  - `description` string
  - `is_required` 0 | 1
  - `is_multiple` 0 | 1
  - `is_multiselect` 0 | 1
  - `is_active` 0 | 1
  - `order_position` integer
  - `items` OptionGroupItemInput[] — Add or update option values
    - `id` integer — Existing item ID to update. Omit to create new.
    - `name` string, required
    - `price` number, float
    - `is_active` 0 | 1
    - `order_position` integer
    - `translations` Translation[]
      - `lang` string — Language code (e.g. en, pl, de)
      - `name` string
      - `description` string
  - `translations` Translation[]
    - `lang` string — Language code (e.g. en, pl, de)
    - `name` string
    - `description` string

## Response `200`

Option group updated

- object
  - `success` boolean
  - `data` OptionGroup
    - `id` integer
    - `name` string
    - `description` string, nullable
    - `is_required` 0 | 1 — Whether selecting an option is required
    - `is_multiple` 0 | 1 — Whether multiple options can be selected
    - `is_multiselect` 0 | 1
    - `is_active` 0 | 1
    - `order_position` integer
    - `items` OptionGroupItem[]
      - `id` integer
      - `name` string
      - `price` number, float
      - `is_active` 0 | 1
      - `order_position` integer
      - `image` string, nullable
      - `translations` Translation[]
        - `lang` string — Language code (e.g. en, pl, de)
        - `name` string
        - `description` string
    - `translations` Translation[]
      - `lang` string — Language code (e.g. en, pl, de)
      - `name` string
      - `description` string

## Other responses

- `403` — API key not authorized for this locale or missing required scope
- `404` — Option group not found

---

[API](https://skmtc.dev/myrest/apis/myrest-public-api.md) · [All operations](https://skmtc.dev/myrest/apis/myrest-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/myrest/myrest-public-api/revisions/70905e6e4284/schema)
