POST

Bulk Create Items


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

Creates multiple items 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
POST
https://www.wixapis.com/restaurants/menus-item/v1/bulk/items/create

Body Params
itemsArray <Item>RequiredmaxItems 100

Items details.


returnEntityboolean

Whether to return entity in the response.

Response Object
resultsArray <BulkCreateItemResult>

Information about the created items.


bulkActionMetadataBulkActionMetadata

Metadata for the API call.

Bulk Create Items
Request
cURL
curl -X POST https://www.wixapis.com/restaurants/menus-item/v1/bulk/items/create \ -H 'Authorization: <AUTH>' \ --data-binary '{ "items": [ { "modifierGroups": [], "labels": [ { "id": "6046e53c-4ce3-41f7-9e2a-0f6652fe1175" } ], "name": "Tofu skewers", "description": "Grilled tofu skewers, marinated in a blend of soy and sesame with seasonal roast vegetables", "priceInfo": {"price": "11"} }, { "modifierGroups": [], "labels": [ { "id": "6046e53c-4ce3-41f7-9e2a-0f7352fe4975" } ], "id": "02022fe1-58ab-ee1c-33db-45521c855e11", "name": "Classic burger", "description": "Our classic burger with lettuce, pickles, heirloom tomatoes, served with a side of fries", "priceInfo": {"price": "15"} } ], "returnEntity": false }'
Response
JSON
{ "results": [ { "itemMetadata": { "id": "02042f01-58ab-441c-33db-55221c855c11", "originalIndex": 0, "success": true } }, { "itemMetadata": { "id": "02022fe1-58ab-ee1c-33db-45521c855e11", "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?