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 API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the Wix App Market.
Updates up to 100 multiple items at once.
Each time an item is updated, its revision increments by 1. The existing revision must be included when updating item. This ensures you're working with the latest item information, and it prevents unintended overwrites.
You can only call this method when authenticated as a Wix app or Wix user identity.
Items to update.
Whether to return entity in the response.
Information about the updated items.
Metadata for the API call.
curl -X POST https://www.wixapis.com/restaurants/menus-item/v1/bulk/items/update \
-H 'Authorization: <AUTH>' \
--data-binary '{
"items": [
{
"item": {
"modifierGroups": [],
"labels": [],
"additionalImages": [],
"id": "639c0795-581c-4dac-a3ab-0bdf4036753c",
"name": "Soft drink",
"revision": "3",
"priceInfo": {"price": "2.5"}
},
"mask": {
"paths": [
"name",
"price"
]
}
},
{
"item": {
"modifierGroups": [],
"labels": [],
"additionalImages": [],
"id": "02042f01-58ab-441c-b5db-55f51c855a62",
"name": "Grilled tofu skewers, marinated in a blend of soy and sesame with seasonal roast vegetables",
"revision": "2",
"visible": false,
"priceInfo": {"price": "7.50"}
},
"mask": {
"paths": [
"visible"
]
}
}
],
"returnEntity": false
}'
{
"results": [
{
"itemMetadata": {
"id": "639c0795-581c-4dac-a3ab-0bdf4036753c",
"originalIndex": 0,
"success": true,
"error": null
},
"item": null
},
{
"itemMetadata": {
"id": "02042f01-58ab-441c-b5db-55f51c855a62",
"originalIndex": 1,
"success": true,
"error": null
},
"item": null
}
],
"bulkActionMetadata": {
"totalSuccesses": 2,
"totalFailures": 0,
"undetailedFailures": 0
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.