Skip to main content
PATCH
/
{shopId}
/
products
/
{productId}
/
reviews
/
{reviewId}
Admin Update review
curl --request PATCH \
  --url http://staging.qshop.ng/apiv2/{shopId}/products/{productId}/reviews/{reviewId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "isApproved": false,
  "reply": "Thanks man"
}
'
{
  "data": {
    "__v": 0,
    "_id": "6383a3d604215d06666ea647",
    "comment": "Good product mate",
    "created": "2022-11-27T17:52:22.544Z",
    "email": "[email protected]",
    "fullName": "Ademi deyinka",
    "isApproved": true,
    "product": "62e05dacbadea08abf03d158",
    "productUpdated": false,
    "rate": 3,
    "shop": "61a956d91a113f7e13c45c15",
    "updated": "2023-02-22T09:36:40.487Z"
  },
  "msg": "Review updated successfully",
  "success": true
}

Path Parameters

productId
string
required
Example:

"61a961741a113f7e13c45c3a"

reviewId
string
required
Example:

"63f62da70bf12b7f208998d1"

Body

application/json
isApproved
boolean
Example:

false

reply
string
Example:

"Thanks man"

Response

200 - application/json

Update review

data
object
msg
string
Example:

"Review updated successfully"

success
boolean
Example:

true