> ## Documentation Index
> Fetch the complete documentation index at: https://replyke-feat-push-rich-payload-fields.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Upvote from Entity

> Remove an upvote from an entity

Removes an upvote from the authenticated user on the specified entity.

## Path Parameters

<ParamField path="entityId" type="string" required>
  ID of the entity to modify
</ParamField>

## Response

Returns the updated entity with the user's upvote removed.

<ResponseField name="id" type="string">
  Unique entity identifier
</ResponseField>

<ResponseField name="userId" type="string">
  ID of the entity creator
</ResponseField>

<ResponseField name="upvotes" type="array">
  Updated array of user IDs who upvoted (current user removed)
</ResponseField>

<ResponseField name="downvotes" type="array">
  Array of user IDs who downvoted
</ResponseField>

## Error Responses

<AccordionGroup>
  <Accordion title="Not Upvoted - 409 Conflict">
    ```json theme={null}
    {
      "error": "Can't remove upvote, as user didn't upvote entity or entity not found.",
      "code": "entity/not-upvoted"
    }
    ```
  </Accordion>

  <Accordion title="Not Found - 404 Not Found">
    ```json theme={null}
    {
      "error": "Entity not found.",
      "code": "entity/not-found"
    }
    ```
  </Accordion>

  <Accordion title="Server Error - 500 Internal Server Error">
    ```json theme={null}
    {
      "error": "Internal server error.",
      "code": "entity/server-error"
    }
    ```
  </Accordion>
</AccordionGroup>

***

## Notes

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