Update Addon Group
Rename an add-on group or change its selection limits.
Authorization
API-TOKEN Your partner API key. Send it in the API-TOKEN header on every request.
In: header
Path Parameters
Header Parameters
API contract version to target. See the Changelog for what changed in each version.
"2.0.0""2.3.0" | "2.2.0" | "2.1.0" | "2.0.0"Request Body
application/json
Group name (English). Sending either name key keeps the at-least-one-language rule in force. Must not be greater than 191 characters.
Group name (Arabic). Sending either name key keeps the at-least-one-language rule in force. Must not be greater than 191 characters.
Minimum options a customer must pick from this group. Must be at least 0.
Maximum options a customer may pick from this group. Must be at least 1.
Sort position of the group inside the business library. Must be at least 0.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.flavours.sa/dev/api/v2/products/addon-groups/qui" \ -H "X-API-Version: 2.3.0" \ -H "Content-Type: application/json" \ -d '{ "includes": [ "magnam" ] }'{
"meta": {
"code": 200,
"status": "success",
"message": "Add-on group updated successfully."
},
"data": {
"id": "8e9141d8-4a62-4c87-8b51-4fb0507666c6",
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"name_en": "Updated Group",
"name_ar": "مجموعة معدّلة",
"min_additionals": 0,
"max_additionals": 5,
"order": 1,
"created_at": 1792593344375,
"updated_at": 1792593344380,
"deleted_at": null,
"products_count": 0,
"options": []
}
}{
"meta": {
"code": 401,
"status": "error",
"message": "Unauthenticated."
},
"data": null
}{
"meta": {
"code": 403,
"status": "error",
"message": "Unauthorized."
},
"data": null
}{
"meta": {
"code": 404,
"status": "error",
"message": "Resource not found."
},
"data": null
}{
"meta": {
"code": 500,
"status": "error",
"message": "Internal server error."
},
"data": null
}