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.
Creates multiple sections at once.
You can only call this method when authenticated as a Wix app or Wix user identity.
Sections details.
Whether to receive the created sections in the response.
Information about the created sections.
Metadata for the API call.
curl -X POST \
'https://www.wixapis.com/restaurants/menus-section/v1/bulk/sections/create' \
-H 'Authorization: <AUTH>' \
--data-binary '{
"sections": [
{
"itemIds": [
"b3dfd67a-7c77-43e8-a707-38eb53850d4a",
"b8e179cc-f339-4ccb-afa9-d9e04d56c461",
"cbbf4358-292c-4e9e-a820-7e73b4c4ac00"
],
"additionalImages": [],
"name": "Mains",
"description": "A diverse range of flavorful dishes which are all sourced daily and locally"
},
{
"additionalImages": [],
"name": "Appetizers",
"description": "These dishes are great for sharing",
"itemIds": []
}
],
"returnEntity": true
}'
{
"results": [
{
"itemMetadata": {
"id": "d2a0af03-e750-4b49-80b0-91dc6bc47b3f",
"originalIndex": 0,
"success": true
},
"item": {
"id": "d2a0af03-e750-4b49-80b0-91dc6bc47b3f",
"revision": "1",
"createdDate": "2024-01-15T07:22:39.195Z",
"updatedDate": "2024-01-15T07:22:39.195Z",
"name": "Mains",
"description": "A diverse range of flavorful dishes which are all sourced daily and locally",
"additionalImages": [],
"itemIds": [
"b3dfd67a-7c77-43e8-a707-38eb53850d4a",
"b8e179cc-f339-4ccb-afa9-d9e04d56c461",
"cbbf4358-292c-4e9e-a820-7e73b4c4ac00"
]
}
},
{
"itemMetadata": {
"id": "162747cc-d542-4d8a-8c22-05936d8d4f93",
"originalIndex": 1,
"success": true
},
"item": {
"id": "162747cc-d542-4d8a-8c22-05936d8d4f93",
"revision": "1",
"createdDate": "2024-01-15T07:22:39.195Z",
"updatedDate": "2024-01-15T07:22:39.195Z",
"name": "Appetizers",
"description": "These dishes are great for sharing",
"additionalImages": [],
"itemIds": []
}
}
],
"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.