Skip to main content
PATCH
/
:projectId
/
entities
/
:entityId
/
remove-upvote
Remove Upvote from Entity
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/entities/:entityId/remove-upvote
{
  "id": "<string>",
  "userId": "<string>",
  "upvotes": [
    {}
  ],
  "downvotes": [
    {}
  ]
}
Removes an upvote 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 upvote removed.
id
string
Unique entity identifier
userId
string
ID of the entity creator
upvotes
array
Updated array of user IDs who upvoted (current user removed)
downvotes
array
Array of user IDs who downvoted

Error Responses

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

Notes

  • Removing an upvote decreases the entity author’s reputation.
  • The request will fail if the entity was never upvoted by the user.
I