Skip to main content
PATCH
/
:projectId
/
comments
/
:commentId
/
downvote
Downvote Comment
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/comments/:commentId/downvote
{
  "id": "<string>",
  "entityId": "<string>",
  "upvotes": [
    {}
  ],
  "downvotes": [
    {}
  ],
  "content": "<string>"
}
Downvotes a comment on behalf of the authenticated user. Adds the user’s ID to the comment’s downvotes array. Removes the user from upvotes if they had previously upvoted. Reduces the reputation of the comment’s author.

Path Parameters

commentId
string
required
The ID of the comment to downvote

Response

Returns the updated comment with the new downvote.
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
Array of user IDs who downvoted (includes the current user)
content
string
Comment content

Error Responses

{
  "error": "Missing required data",
  "code": "comment/missing-data"
}
{
  "error": "Comment not found",
  "code": "comment/not-found"
}
{
  "error": "User has already downvoted this comment",
  "code": "comment/already-downvoted"
}
{
  "error": "Internal server error.",
  "code": "comment/server-error",
  "details": "[error message]"
}

Notes

  • The user’s ID is removed from upvotes if it was previously added.
  • A downvote reduces the comment author’s reputation.
  • A 409 Conflict is returned if the user has already downvoted the comment.
I