update
Reviews
update
Update Review
This endpoint allows the user to update a specific review by providing the review ID in the URL path.
Request Body
review(string): The updated review content.rating(number): The updated rating for the review.
Response
The response will contain the updated review information, including the review ID, book, review content, reviewer, rating, upvoters, downvoters, removal status, creation and update timestamps, and version.
Example response:
{
"data": {
"updatedReview": {
"_id": "",
"book": "",
"review": "",
"reviewer": "",
"rating": 0,
"upvoters": [],
"downvoters": [],
"isRemoved": true,
"createdAt": "",
"updatedAt": "",
"__v": 0
},
"error": null
}
}
PUT
update