Skip to main content
PATCH
/
:projectId
/
comments
/
:commentId
/
remove-upvote
Remove Upvote from Comment
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-upvote
{
  "id": "<string>",
  "entityId": "<string>",
  "upvotes": [
    {}
  ],
  "downvotes": [
    {}
  ],
  "content": "<string>"
}
Removes a previously added upvote from a comment by the authenticated user. Subtracts the user’s ID from the upvotes array. Decreases the reputation of the comment’s author.

Path Parameters

commentId
string
required
The ID of the comment to un-upvote

Response

Returns the updated comment with the upvote removed.
id
string
Unique comment identifier
entityId
string
ID of the entity this comment belongs to
upvotes
array
Updated array of user IDs who upvoted (current user removed)
downvotes
array
Array of user IDs who downvoted
content
string
Comment content

Error Responses

{
  "error": "Missing required data",
  "code": "comment/missing-data"
}
{
  "error": "Comment not found",
  "code": "comment/not-found"
}
{
  "error": "User hasn't upvoted this comment",
  "code": "comment/not-upvoted"
}
{
  "error": "Internal server error.",
  "code": "comment/server-error",
  "details": "[error message]"
}

Notes

  • The authenticated user must have already upvoted the comment.
  • Removes the user’s ID from upvotes.
  • Deducts reputation from the comment’s author.
  • A 409 Conflict is returned if the user hasn’t upvoted the comment.
I