> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: updateModifier(_id: string, modifier: UpdateModifier, options: UpdateModifierOptions) # Method package: wixRestaurantsV2 # Method menu location: wixRestaurantsV2 --> itemModifiers --> updateModifier # Method Link: https://dev.wix.com/docs/velo/apis/wix-restaurants-v2/menus/item-modifiers/update-modifier.md # Method Description: > **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](https://www.wix.com/app-market/wix-restaurants-menus-new). Updates an item modifier. To update multiple item modifiers at once, use [Bulk Update Item Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifiers/bulk-update-modifiers.md). 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. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## updateModifier example for dashboard page code ```javascript import { itemModifiers } from 'wix-restaurants.v2'; async function updateModifier(id, modifier, options) { try { const result = await itemModifiers.updateModifier(id, modifier, options); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## updateModifier example for exporting from backend code ```javascript import { itemModifiers } from 'wix-restaurants.v2'; import { webMethod, Permissions } from 'wix-web-module'; import { elevate } from 'wix-auth'; const elevatedUpdateModifier = elevate(itemModifiers.updateModifier); export const updateModifier = webMethod( Permissions.Anyone, async (id, modifier, options) => { try { const result = await elevatedUpdateModifier(id, modifier, options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---