---
title: "PUT /comments/{comment_id}"
method: PUT
path: "/comments/{comment_id}"
tags: ["comments"]
---

# PUT /comments/{comment_id}

`PUT /comments/{comment_id}`

Updates a comment

## Path parameters

- `comment_id` string, required

## Query parameters

- `user_id` string, required

## Request body

- UpdateCommentRequestBody
  - `entityType` 'Track' | 'FanClub' | 'Event', required — Type of entity that can be commented on
  - `entityId` integer, required — ID of the entity being commented on
  - `body` string, required — The updated comment text
  - `mentions` integer[] — Array of user IDs mentioned in the comment (max 10)

## Response `200`

Comment updated successfully

- WriteResponse
  - `transaction_hash` string — The blockchain transaction hash
  - `block_hash` string — The blockchain block hash
  - `block_number` integer — The blockchain block number/height

## Other responses

- `401` — Unauthorized
- `404` — Comment not found
- `500` — Server error

---

[API](https://skmtc.dev/audius/apis/audius-api.md) · [All operations](https://skmtc.dev/audius/apis/audius-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/audius/audius-api/revisions/940230b2ed3d/schema)
