---
title: "Update a review"
method: PATCH
path: "/reviews-and-ratings/api/review/{reviewId}"
tags: ["Review"]
---

# Update a review

`PATCH /reviews-and-ratings/api/review/{reviewId}`

## Request

- Base URL: `https://storecomponents.myvtex.com`
- URL: `https://storecomponents.myvtex.com/reviews-and-ratings/api/review/{reviewId}`
- Auth: one of:
  - API key in header `X-VTEX-API-AppKey` and API key in header `X-VTEX-API-AppToken`
  - API key in header `VtexIdclientAutCookie`

Updates the information of a review. 

## Permissions

This endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).

## Path parameters

- `reviewId` string, required

## Headers

- `Content-Type` string, required
- `Accept` string, required

## Request body

- object
  - `productId` string, required: Product ID.
  - `rating` number, required: Customer rating.
  - `title` string, required: Review's title.
  - `text` string, required: Review's text.
  - `reviewerName` string, required: Reviewer name.
  - `shopperId` string: Shopper email.
  - `verifiedPurchaser` boolean: Indicates if the reviewer is a verified purchaser (`true`) or not (`false`).
  - `locale` string, nullable: Review's locale.

## Response `200`

OK

- object: Response body object.
  - `id` string: Review ID.
  - `productId` string: Product ID.
  - `rating` number: Customer rating.
  - `title` string: Review's title.
  - `text` string: Review's text.
  - `reviewerName` string: Reviewer name.
  - `shopperId` string: Shopper email.
  - `reviewDateTime` string: Review's date and time.
  - `searchDate` string: Review's search date.
  - `verifiedPurchaser` boolean: Indicates if the reviewer is a verified purchaser (`true`) or not (`false`).
  - `sku` string, nullable: SKU ID.
  - `approved` boolean: Indicates if the review was approved (`true`) or not (`false`).
  - `location` string, nullable: Review's origin location.
  - `locale` string, nullable: Review's locale.
  - `pastReviews` string, nullable: Past reviews of the same product.

## Changes

- **2023-12-21** `7a18272398d1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vtex/apis/reviews-and-ratings-api/changes/reviews-and-ratings/api/review/:reviewId/patch.md)

---

[API](https://skmtc.dev/vtex/apis/reviews-and-ratings-api.md) - [All operations](https://skmtc.dev/vtex/apis/reviews-and-ratings-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vtex/apis/reviews-and-ratings-api/revisions/b3004f2e6a88?raw)
