POST

Bulk Update Menu


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 Menu API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from Wix App Market.

Updates multiple menus at once.

Each time a menu is updated, revision increments by 1. The existing revision must be included when updating the menu. This ensures you're working with the latest menu information, and it prevents unintended overwrites.

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/menus-menu/v1/bulk/menus/update

Body Params
menusArray <MaskedMenu>RequiredminItems 1maxItems 100

Menus to update.


returnEntityboolean

Whether to receive the entity in the response.

Response Object
resultsArray <BulkMenuResult>minItems 1maxItems 100

Results of bulk menu update.


bulkActionMetadataBulkActionMetadata

Metadata for the API call.

Bulk Update Menus
Request
cURL
curl -X POST 'https://www.wixapis.com/restaurants/menus-menu/v1/bulk/menus/update' \ -H 'Authorization: <AUTH> \ --data-binary '{ "menus": [ { "menu": { "sectionIds": [ "a1e247ea-0c57-498e-a9be-4044ed48bda8" ], "id": "bbb65621-6338-4837-8fdd-aebc654e2311", "revision": "2", "name": "Dinner Menu" }, "mask": { "paths": [ "sectionIds" ] } }, { "menu": { "sectionIds": [], "id": "e11f38cf-0f11-4484-ba44-5b1746aaea20", "revision": "2", "name": "Brunch Menu" }, "mask": { "paths": [ "name" ] } } ], "returnEntity": true }'
Response
JSON
{ "results": [ { "menuMetadata": { "id": "bbb65621-6338-4837-8fdd-aebc654e2311", "originalIndex": 0, "success": true }, "menu": { "id": "bbb65621-6338-4837-8fdd-aebc654e2311", "revision": "4", "createdDate": "2024-01-14T16:18:23.418Z", "updatedDate": "2024-01-14T16:26:33.470Z", "name": "Dinner Menu", "sectionIds": ["a1e247ea-0c57-498e-a9be-4044ed48bda8"] } }, { "menuMetadata": { "id": "e11f38cf-0f11-4484-ba44-5b1746aaea20", "originalIndex": 1, "success": true }, "menu": { "id": "e11f38cf-0f11-4484-ba44-5b1746aaea20", "revision": "4", "createdDate": "2024-01-14T16:18:23.418Z", "updatedDate": "2024-01-14T16:26:33.473Z", "name": "Brunch Menu", "sectionIds": ["a1e247ea-0c57-498e-a9be-4044ed48bda8"] } } ], "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.

Did this help?