POST

Bulk Create Modifier Groups


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Note: The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from Wix App Market.

Creates multiple modifier groups.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/restaurants/item-modifier-group/v1/bulk/modifier-groups/create

Body Params
modifierGroupsArray <ModifierGroup>RequiredmaxItems 100

Modifier groups details.


returnEntityboolean

Whether to receive the created modifier groups in the response.

Response Object
resultsArray <BulkCreateModifierGroupsResult>

Information about the created modifier groups.


bulkActionMetadataBulkActionMetadata

Metadata for the API call.

Create multiple modifier groups
Request
cURL
curl -X POST https://www.wixapis.com/restaurants/item-modifier-group/v1/bulk/modifier-groups/create \ -H 'Authorization: <AUTH>' --data-binary '{ "modifierGroups": [ { "name": "Topping", "modifiers": [ { "id": "481135f7-1392-4a2e-ac6b-12fb0ef398b7", "additionalChargeInfo": {"additionalCharge": "2.50"} }, { "id": "68eddbbf-da8b-4b24-ac74-a5f6b38b6de6", "additionalChargeInfo": {"additionalCharge": "0.00"} } ], "rule": { "mandatory": false, "minSelections": 0, "maxSelections": null } }, { "name": "Sides", "modifiers": [ { "id": "b23eba29-b831-4f1b-abfc-1ac4461b2cee", "additionalChargeInfo": {"additionalCharge": "0.20} }, { "id": "b8bd35fc-9f62-4900-a62b-93c7040fef64", "additionalChargeInfo": {"additionalCharge": "0.80"} } ], "rule": { "mandatory": true, "minSelections": 1, "maxSelections": 3 } } ], "returnEntity": false }'
Response
JSON
{ "results": [ { "itemMetadata": { "id": "02042f01-58ab-441c-33db-55221c855c11", "originalIndex": 0, "success": true } }, { "itemMetadata": { "id": "02022fe1-58ab-ee1c-33db-45521c855e11", "originalIndex": 1, "success": true } } ], "bulkActionMetadata": { "totalSuccesses": 2, "totalFailures": 0, "undetailedFailures": 0 } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?