> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replyke.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Comment

> Edit a comment's text content

Updates the text content of a comment. Only the comment's author, or a request with a service or master key, can update a comment.

**Authentication required.**

## Path Parameters

<ParamField path="commentId" type="string" required>
  The UUID of the comment to update.
</ParamField>

## Body Parameters

<ParamField body="content" type="string" required>
  The new text content for the comment. Cannot be empty.
</ParamField>

## Response

Returns the updated [Comment](/data-models/comment) object.

## Error Responses

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

  <Accordion title="Forbidden — 403">
    ```json theme={null}
    { "error": "You do not have permission to update this comment.", "code": "comment/forbidden" }
    ```
  </Accordion>
</AccordionGroup>
