This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Note: The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the Wix App Market.
Updates a section.
Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.
You can only call this method when authenticated as a Wix app or Wix user identity.
Section ID.
Section update.
Updated section.
curl -X PATCH https://www.wixapis.com/restaurants/menus-section/v1/sections/70f12b79-cd30-4750-91ab-1021a16cbbfa \
-H 'Authorization: <AUTH>' \
--data-binary '{
"section": {
"itemIds": [
"f6222bdc-1ab2-4cd4-bf6c-8d4fca055d86",
"c47a77e5-1df6-4c95-a04f-7cd8bb42da33"
],
"additionalImages": [],
"id": "70f12b79-cd30-4750-91ab-1021a16cbbfa",
"name": "Drinks",
"revision": "1"
},
"mask": {
"paths": [
"itemIds"
]
}
}'
{
"section": {
"id": "70f12b79-cd30-4750-91ab-1021a16cbbfa",
"revision": "2",
"createdDate": "2023-12-17T20:39:33.155Z",
"updatedDate": "2024-01-15T08:02:19.981Z",
"name": "Drinks",
"description": "",
"additionalImages": [],
"itemIds": [
"f6222bdc-1ab2-4cd4-bf6c-8d4fca055d86",
"c47a77e5-1df6-4c95-a04f-7cd8bb42da33"
]
}
}
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.