---
title: "Update comment"
method: PATCH
path: "/api/v3/meta/bases/{baseId}/comments/{commentId}"
tags: ["Comments"]
---

# Update comment

`PATCH /api/v3/meta/bases/{baseId}/comments/{commentId}`

## Request

- Base URL: `https://app.nocodb.com`
- URL: `https://app.nocodb.com/api/v3/meta/bases/{baseId}/comments/{commentId}`
- Auth: one of:
  - API key in header `xc-token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/nocodb/apis/nocodb-v3/docs/api/v3/meta/bases/:baseId/comments/:commentId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update the text of an existing comment. Only the comment creator can update.

**Note**: Comment APIs are available on cloud-hosted **Business** plans and above, and on licensed self-hosted deployments (**Business** plan and above).

## Path parameters

- `baseId` string, required
- `commentId` string, required

## Request body

- CommentUpdateRequest: Request body for updating a comment.
  - `comment` string, required: Updated comment text.

## Response `200`

Comment updated successfully.

- Comment: A comment on a record.
  - `id` string: Unique comment ID.
  - `record_id` string: Record ID this comment belongs to.
  - `table_id` string: Table ID this comment belongs to.
  - `comment` string: Comment text (supports markdown).
  - `created_by` string: User ID of the comment creator.
  - `resolved_by` string, nullable: User ID who resolved this comment (null if not resolved).
  - `parent_comment_id` string, nullable: Parent comment ID for threaded comments.
  - `created_at` string, date-time: Creation timestamp.
  - `updated_at` string, date-time: Last update timestamp.

## Other responses

- `400`: Bad request.
- `401`: No credential was supplied, it was not valid, or this operation does not accept the kind of credential that was sent.
- `403`: Authenticated, but not allowed: the role is too low, the token scope does not cover the operation, or the plan does not include the feature or allows no more of this resource.
- `404`: The resource does not exist. Hooks and documents answer 404; most other resources answer 422 instead.
- `500`: Unexpected server error. The body carries `message` only — no `error` code.

## Changes

- **2026-10-13** `2ba4267a99d7`: 1 breaking, 5 info
  - the `comment` response property's maxLength was increased from `3000` to `10000` for the response status `200`
  - the `comment` request property's maxLength was increased from `3000` to `10000`
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `403`
  - …2 more

[Operation history](https://skmtc.dev/nocodb/apis/nocodb-v3/changes/api/v3/meta/bases/:baseId/comments/:commentId/patch.md)

---

[API](https://skmtc.dev/nocodb/apis/nocodb-v3.md) - [All operations](https://skmtc.dev/nocodb/apis/nocodb-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/nocodb/apis/nocodb-v3/revisions/62a735aaf849?raw)
