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

Path Parameters

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

Response

Returns the updated comment with the downvote removed.
id
string
Unique comment identifier
entityId
string
ID of the entity this comment belongs to
upvotes
array
Array of user IDs who upvoted
downvotes
array
Updated array of user IDs who downvoted (current user removed)
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 downvoted this comment",
  "code": "comment/not-downvoted"
}
{
  "error": "Internal server error.",
  "code": "comment/server-error",
  "details": "[error message]"
}

Notes

  • The authenticated user must have previously downvoted the comment.
  • A successful request removes the user’s ID from downvotes.
  • The comment author’s reputation is increased.
  • A 409 Conflict is returned if the user hasn’t downvoted the comment.
I