PATCH

Update Modifier


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

Updates an item modifier.

To update multiple item modifiers at once, use Bulk Update Item Modifiers.

Each time an item modifier is updated, its revision increments by 1. The existing revision must be included when updating an item modifier. This ensures you're working with the latest item modifier 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
PATCH
https://www.wixapis.com/restaurants/item-modifiers/v1/modifiers/{modifier.id}

Path Params
modifier.idstringRequired

Item modifier ID.

Body Params
modifierModifierRequired

Item Modifier with updated properties.

Response Object
modifierModifier

Updated item modifier.

Update an item modifier
Request
cURL
curl -X PATCH "https://www.wixapis.com/restaurants/item-modifiers/v1/modifiers/02042f01-58ab-441c-b5db-55f51c855a11?modifierId=02042f01-58ab-441c-b5db-55f51c855a11" \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Authorization: <AUTH>' \ --data-raw '{ "modifier": { "id": "02042f01-58ab-441c-b5db-55f51c855a11", "revision": "2", "name": "Tofu", } }'
Response
JSON
{ "modifier": { "id": "02042f01-58ab-441c-b5db-55f51c855a11", "revision": "3", "createdDate": "2023-12-04T08:12:01.896Z", "updatedDate": "2023-12-04T08:38:47.940Z", "name": "Tofu", "type": "MODIFIER" } }
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?