Update Product Review
Update an existing product review. Only the review author can update their own review.
Endpoint
PUT /api/shop/products/{productId}/reviews/{reviewId}Request Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | application/json |
X-STOREFRONT-KEY | Yes | Your storefront API key |
Authorization | Yes | Bearer token (review author required) |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
productId | integer | Yes | Product ID |
reviewId | integer | Yes | Review ID to update |
Request Body
json
{
"title": "string",
"comment": "string",
"rating": "integer (1-5)"
}| Field | Type | Required | Description |
|---|---|---|---|
title | string | No | Updated review title |
comment | string | No | Updated review content |
rating | integer | No | Updated rating (1-5) |
Response Fields (200 OK)
| Field | Type | Description |
|---|---|---|
id | integer | Review ID |
productId | integer | Product ID |
title | string | Review title |
comment | string | Review content |
rating | integer | Star rating |
authorName | string | Reviewer name |
authorEmail | string | Reviewer email |
status | string | Review status |
updatedAt | string | Last update timestamp |
Use Cases
- Allow customers to edit their reviews
- Update reviews based on new experience
- Correct mistakes or typos in reviews
- Change ratings if opinion changes
Permissions
- Only review author can update their review
- Admin users can update any review
- Updated reviews may require re-approval

