---
title: "Update an existing product review"
method: PATCH
path: "/reviews/{id}"
tags: ["Customer Review"]
---

# Update an existing product review

`PATCH /reviews/{id}`

## Request

- Base URL: `http://localhost:8000/api/shop`
- URL: `http://localhost:8000/api/shop/reviews/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-shop-api/docs/reviews/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates a customer-owned product review. Only the author (matched via Bearer token) can modify their review.

## Path parameters

- `id` string, required

## Headers

- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Request body

- object
  - `title` string
  - `comment` string
  - `rating` integer
  - `name` string

## Response `200`

Review updated.

## Other responses

- `400`: Invalid input
- `404`: Review not found or not owned by the caller.
- `422`: Validation Error

---

[API](https://skmtc.dev/bagisto/apis/bagisto-shop-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-shop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-shop-api/revisions/f619df36bf29?raw)
