Skip to main content
PATCH
/
:projectId
/
entities
/
:entityId
/
remove-downvote
Remove Downvote from Entity
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/entities/:entityId/remove-downvote
{
  "id": "<string>",
  "userId": "<string>",
  "upvotes": [
    {}
  ],
  "downvotes": [
    {}
  ]
}
Removes a downvote from the authenticated user on the specified entity.

Path Parameters

entityId
string
required
ID of the entity to modify

Response

Returns the updated entity with the user’s downvote removed.
id
string
Unique entity identifier
userId
string
ID of the entity creator
upvotes
array
Array of user IDs who upvoted
downvotes
array
Updated array of user IDs who downvoted (current user removed)

Error Responses

{
  "error": "Can't remove downvote, as user didn't downvote entity or entity not found.",
  "code": "entity/not-downvoted"
}
{
  "error": "Entity not found.",
  "code": "entity/not-found"
}
{
  "error": "Internal server error.",
  "code": "entity/server-error"
}

Notes

  • Removing a downvote increases the entity author’s reputation.
  • The request will fail if the entity was never downvoted by the user.
I