> ## 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 Downvote from Comment

> Remove a downvote from a comment

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

<ParamField path="commentId" type="string" required>
  The ID of the comment to un-downvote
</ParamField>

## Response

Returns the updated comment with the downvote removed.

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

<ResponseField name="entityId" type="string">
  ID of the entity this comment belongs to
</ResponseField>

<ResponseField name="upvotes" type="array">
  Array of user IDs who upvoted
</ResponseField>

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

<ResponseField name="content" type="string">
  Comment content
</ResponseField>

## Error Responses

<AccordionGroup>
  <Accordion title="Missing Comment ID - 400 Bad Request">
    ```json theme={null}
    {
      "error": "Missing required data",
      "code": "comment/missing-data"
    }
    ```
  </Accordion>

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

  <Accordion title="Not Downvoted - 409 Conflict">
    ```json theme={null}
    {
      "error": "User hasn't downvoted this comment",
      "code": "comment/not-downvoted"
    }
    ```
  </Accordion>

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

***

## 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.
