Skip to content

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

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key
AuthorizationYesBearer token (review author required)

Path Parameters

ParameterTypeRequiredDescription
productIdintegerYesProduct ID
reviewIdintegerYesReview ID to update

Request Body

json
{
  "title": "string",
  "comment": "string",
  "rating": "integer (1-5)"
}
FieldTypeRequiredDescription
titlestringNoUpdated review title
commentstringNoUpdated review content
ratingintegerNoUpdated rating (1-5)

Response Fields (200 OK)

FieldTypeDescription
idintegerReview ID
productIdintegerProduct ID
titlestringReview title
commentstringReview content
ratingintegerStar rating
authorNamestringReviewer name
authorEmailstringReviewer email
statusstringReview status
updatedAtstringLast 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

Released under the MIT License.