---
title: "Edit a comment."
method: PATCH
path: "/v1/comments/{id}"
---

# Edit a comment.

`PATCH /v1/comments/{id}`

## Request

- Base URL: `https://api.cortexplus.io`
- URL: `https://api.cortexplus.io/v1/comments/{id}`
- Auth: HTTP bearer

Replace the comment body. Requires the cortex.write scope.

## Path parameters

- `id` string, required

## Request body

- object
  - `body` string, required

## Response `200`

Successful response.

- object
  - `id` string, required
  - `nodeId` string, required
  - `body` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time

## Other responses

- `default`: Request failed.

---

[API](https://skmtc.dev/cortexplus/apis/cortexplus-rest-api.md) · [All operations](https://skmtc.dev/cortexplus/apis/cortexplus-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cortexplus/apis/cortexplus-rest-api/revisions/2d04f1593663?raw)
