Endpoint
Path Parameters
The unique identifier of the product review to update
Request Body
ID of the product being reviewed
ID of the user who created the review
Rating given to the product (typically 1-5)
Text comment or review description
Response
Returns the updated product review object.Unique identifier for the review
ID of the product being reviewed
ID of the user who created the review
Rating given to the product
Text comment or review description
Timestamp when the review was originally created (ISO 8601 format)
Status Codes
Product review successfully updated
Invalid request body or validation error
Product review not found
Example Request
Example Response
Error Response
When a product review is not found:Validation Rules
productIdis required and must be a valid integeruserIdis required and must be a valid integerratingis required and must be a valid integercommentis optional but should be a string if provided
Notes
- The
createdAttimestamp is not modified during updates - All fields in the request body are required, even if only updating specific fields
- The review ID in the path parameter must match an existing review