DELETE

Bulk Delete Sections


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

Deletes multiple sections at once.

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
DELETE
https://www.wixapis.com/restaurants/menus-section/v1/bulk/sections/delete

Query Params
idsArray <string>Required

Section IDs.

Response Object
resultsArray <BulkDeleteSectionResult>

Information about the deleted sections.


bulkActionMetadataBulkActionMetadata

Metadata for the API call.

Delete multiple sections
Request
cURL
curl -X DELETE 'https://www.wixapis.com/restaurants/menus-section/v1/bulk/sections/delete' \ -H 'Authorization: <AUTH> \ --data-raw '{ "ids": [ "1fc4267d-22db-44dc-a872-6484b737718a", "be9330c1-c3c0-4f76-96cc-b69eac8d88da" ] }'
Response
JSON
{ "results": [ { "itemMetadata": { "id": "1fc4267d-22db-44dc-a872-6484b737718a", "originalIndex": 0, "success": true } }, { "itemMetadata": { "id": "be9330c1-c3c0-4f76-96cc-b69eac8d88da", "originalIndex": 1, "success": true } } ], "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.

Event TriggersThis method triggers the following events:
Did this help?