Endpoint
Request Body
ID of the product being reviewed
ID of the user creating the review
Rating given to the product (typically 1-5)
Text comment or review description
Response
Returns the created product review object.Unique identifier for the newly created 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 created (ISO 8601 format)
Status Codes
Product review successfully created
Invalid request body or validation error
Example Request
Example Response
Response Headers
The response includes aLocation header with the URI of the created resource:
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 automatically set by the server - The review ID is automatically generated