---
title: "PUT Update a comment"
description: "Update the content of an existing comment (author only)"
last_updated: "2026-05-06T07:33:44.981267+00:00"
canonical_url: "https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/api/comments/commentscontroller-updatecomment"
---

<APIEndpoint
  method={"PUT"}
  path={"/comments/:commentId"}
  summary={"Update a comment"}
  description={"Update the content of an existing comment (author only)"}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"X-Organization-Id","in":"header","required":false,"description":"Organization ID (required for session auth, optional for API key auth)","schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"description":"Unique comment identifier","schema":{"type":"string"}}]} />

## Request Body

<APIRequestBody
  contentType={"application/json"}
  required={true}
  schema={{"type":"object"}}
/>

## Responses

<APIResponse
  statusCode={"200"}
  description={"Comment updated successfully"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"400"}
  description={"Bad Request"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"PUT"}
  path={"/comments/:commentId"}
  parameters={[{"name":"X-Organization-Id","in":"header","required":false,"description":"Organization ID (required for session auth, optional for API key auth)","schema":{"type":"string"}},{"name":"commentId","in":"path","required":true,"description":"Unique comment identifier","schema":{"type":"string"}}]}
  requestBody={{"contentType":"application/json","required":true,"description":"","schema":{"type":"object"}}}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/llms.txt) for all pages in this wiki.
