POST

Create Label


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

Creates an item Label.

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/item-labels/v1/labels

Body Params
labelLabelRequired

Item label details.

Response Object
labelLabel

Item label.

Create a label
Request
cURL
curl -X POST https://www.wixapis.com/restaurants/item-labels/v1/labels \ -H 'Authorization: <AUTH>' \ --data-binary '{ "label": { "name": "Extra hot", "icon": { "url": "https://static.wixstatic.com/shapes/ec845c_a046f8b157e54b5d888fc424a1dea027.svg", "id": "ec845c_a046f8b157e54b5d888fc424a1dea027.svg", "width": 24, "height": 24 } } }'
Response
JSON
{ "label": { "id": "6d180f1f-ff44-49fc-9536-96babfeddab8", "revision": "1", "createdDate": "2024-01-14T10:42:17.037Z", "updatedDate": "2024-01-14T10:42:17.037Z", "name": "Extra hot", "icon": { "id": "ec845c_a046f8b157e54b5d888fc424a1dea027.svg", "url": "https://static.wixstatic.com/shapes/ec845c_a046f8b157e54b5d888fc424a1dea027.svg", "height": 24, "width": 24 } } }
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?