Create an addon group
post
https://api.flactrum.com/v1/addon-groups
| Required scope | addons.write |
| Success status | 201 |
| Returns | One AddonGroup object |
Request body
| Field | Type | Description |
|---|---|---|
| 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
| Field | Type | Description |
|---|---|---|
| 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 POST 'https://api.flactrum.com/v1/addon-groups' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"name": "Süt tercihi",
"selection_type": "single",
"is_required": true,
"product_ids": [
"01m43mxqc3c98rjbd6gams9kh7"
]
}'
HTTP 201 · application/json
{
"data": {
"id": "01m43mxqch2bpb4j4z8wbqa46t",
"name": "Süt tercihi",
"slug": "sut-tercihi",
"selection_type": "single",
"is_required": true,
"sort_order": 0,
"addons": [],
"product_ids": [
"01m43mxqc3c98rjbd6gams9kh7"
],
"category_ids": [],
"translations": [],
"created_at": "2026-10-04T14:26:11+00:00",
"updated_at": "2026-10-04T14:26:11+00:00"
}
}