Skip to main content

Create Review

This API is used to create a review for an item.

Request Body required
  • itemId number required

    Unique identifier of the item.

  • rating number required

    The review score out of 5.

  • title string required

    The title of the review.

  • description string

    The description of the review.

  • image string[] required

    The images associated with the review.

Responses

Success response


{
"statusCode": 201,
"data": {
"_id": "635785b94ad82b2e8dda009b",
"itemId": 352184,
"rating": 3,
"title": "Best Item!",
"description": "...",
"image": [
"url",
"url"
],
"createdAt": "2022-10-25T06:44:09.702Z"
}
}