cURL
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 }
"61a961741a113f7e13c45c3a"
"63f62da70bf12b7f208998d1"
false
"Thanks man"
Update review
Show child attributes
0
"6383a3d604215d06666ea647"
"Good product mate"
"2022-11-27T17:52:22.544Z"
"[email protected]"
"Ademi deyinka"
true
"62e05dacbadea08abf03d158"
3
"61a956d91a113f7e13c45c15"
"2023-02-22T09:36:40.487Z"
"Review updated successfully"
Was this page helpful?