Skip to main content
PATCH
/
reviews
/
{reviewId}
/
upvote
upvote
curl --request PATCH \
  --url http://localhost:8000/v1/reviews/{reviewId}/upvote
{
  "data": {
    "updatedReview": {
      "__v": 0,
      "_id": "670c3a4ede2e2e9ee7d34d0f",
      "book": "670bcc0569f877ed50dfacdf",
      "createdAt": "2024-10-13T21:23:26.026Z",
      "downvoters": [],
      "isRemoved": false,
      "rating": 3,
      "review": "A great book, Gilead.",
      "reviewer": "670c22148db1109908c9f6b9",
      "updatedAt": "2024-10-14T12:57:52.791Z",
      "upvoters": [
        "670c22148db1109908c9f6b9"
      ]
    }
  },
  "error": null
}

Path Parameters

reviewId
string
required
Example:

"670c3a4ede2e2e9ee7d34d0f"

Response

200 - application/json

upvote - success

data
object
error
unknown