> 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: updateAvailabilityException(_id: string, availabilityException: UpdateAvailabilityException, options: UpdateAvailabilityExceptionOptions) # Method package: wixRestaurantsV2 # Method menu location: wixRestaurantsV2 --> availabilityExceptions --> updateAvailabilityException # Method Link: https://dev.wix.com/docs/velo/apis/wix-restaurants-v2/availability-exceptions/update-availability-exception.md # Method Description: Updates an availability exception. Each time the availability exception is updated, `revision` increments by 1. The current `revision` must be passed when updating the availability exception. This ensures you're working with the latest availability exception and prevents unintended overwrites. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## updateAvailabilityException example for dashboard page code ```javascript import { availabilityExceptions } from 'wix-restaurants.v2'; async function updateAvailabilityException(id, availabilityException, options) { try { const result = await availabilityExceptions.updateAvailabilityException(id, availabilityException, options); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## updateAvailabilityException example for exporting from backend code ```javascript import { availabilityExceptions } from 'wix-restaurants.v2'; import { webMethod, Permissions } from 'wix-web-module'; import { elevate } from 'wix-auth'; const elevatedUpdateAvailabilityException = elevate(availabilityExceptions.updateAvailabilityException); export const updateAvailabilityException = webMethod( Permissions.Anyone, async (id, availabilityException, options) => { try { const result = await elevatedUpdateAvailabilityException(id, availabilityException, options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---