Overview / Catalog / Update an addon group

Update an addon group

patch https://api.flactrum.com/v1/addon-groups/{group}
Required scope addons.write
Success status200
Returns One AddonGroup object

Parameters

NameInTypeDescription
group * path string ULID of the record.

Request body

FieldTypeDescription
name * string —
selection_type * string Single or multiple choice.
is_required boolean —
sort_order integer —
product_ids array —
category_ids array —
translations object Language code → fields. Only languages configured for the brand are accepted; an empty value removes that translation. Translatable here: name.

Response fields

FieldTypeDescription
id string —
name string —
slug string|null —
selection_type string|null Single or multiple choice.
is_required boolean —
sort_order integer —
addons array —
product_ids array Products this group is attached to directly.
category_ids array Categories whose products all get this group.

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X PATCH 'https://api.flactrum.com/v1/addon-groups/01m43mxqvhdk5rnwskxpvt939b' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "is_required": true
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mxqvhdk5rnwskxpvt939b",
        "name": "Süt tercihi",
        "slug": "sut-tercihi",
        "selection_type": "single",
        "is_required": true,
        "sort_order": 1,
        "addons": [
            {
                "id": "01m43mxqvjqw2hmj103emtxqk2",
                "group_id": "01m43mxqvhdk5rnwskxpvt939b",
                "name": "Yulaf sütü",
                "price": 15,
                "stock_item_id": null,
                "quantity_per_use": null,
                "waste_percent": 0,
                "gross_quantity_per_use": null,
                "is_active": true,
                "sort_order": 0,
                "translations": []
            }
        ],
        "product_ids": [],
        "category_ids": [],
        "translations": [],
        "created_at": "2026-10-04T14:26:11+00:00",
        "updated_at": "2026-10-04T14:26:11+00:00"
    }
}