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 Variants API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the Wix App Market.
Creates multiple item variants.
You can only call this method when authenticated as a Wix app or Wix user identity.
Item variants details.
Whether to receive the created item variants in the response.
Information about the created item variants.
Metadata for the API call.
curl -X POST https://www.wixapis.com/restaurants/item-variants/v1/bulk/variants/create \
-H 'Authorization: <AUTH>'
--data-binary '{
"variants": [
{
"name": "Small"
},
{
"name": "Medium"
},
{
"name": "Large"
}
],
"returnEntity": false
}'
{
"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": 3,
"totalFailures": 0,
"undetailedFailures": 0
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.