> 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: updateReview(_id: string, review: UpdateReview, options: UpdateReviewOptions) # Method package: wixReviewsV2 # Method menu location: wixReviewsV2 --> reviews --> updateReview # Method Link: https://dev.wix.com/docs/velo/apis/wix-reviews-v2/reviews/update-review.md # Method Description: Updates a review. The `updateReview()` function returns a promise that resolves to the updated review. Each time the review is updated, `revision` increments by 1. The existing `revision` must be included when updating the review. This ensures you're working with the latest review information, and it prevents unintended overwrites. This function is not a universal function and runs only on the backend. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## updateReview example for dashboard page code ```javascript import { reviews } from 'wix-reviews.v2'; async function updateReview(id, review, options) { try { const result = await reviews.updateReview(id, review, options); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## updateReview example for exporting from backend code ```javascript import { reviews } from 'wix-reviews.v2'; import { webMethod, Permissions } from 'wix-web-module'; import { elevate } from 'wix-auth'; const elevatedUpdateReview = elevate(reviews.updateReview); export const updateReview = webMethod( Permissions.Anyone, async (id, review, options) => { try { const result = await elevatedUpdateReview(id, review, options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---