---
title: "Update Comment"
method: PUT
path: "/api/comments/{comment_id}"
tags: ["Comments"]
---

# Update Comment

`PUT /api/comments/{comment_id}`

## Request

- Base URL: `https://alpha-bazaar-signal-server.onrender.com`
- URL: `https://alpha-bazaar-signal-server.onrender.com/api/comments/{comment_id}`
- Auth: HTTP bearer

Edit a comment (author only)

## Path parameters

- `comment_id` string, required

## Request body

- SignalCommentUpdate
  - `content` string, required

## Response `200`

Successful Response

- SignalCommentResponse
  - `id` string, required
  - `signal_id` string, required
  - `user_id` string, required
  - `username` string, required
  - `content` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `is_edited` boolean, required
  - `is_publisher` boolean, required
  - `like_count` integer, required
  - `dislike_count` integer, required
  - `user_reaction` string, nullable, required
  - `can_edit` boolean, required
  - `can_delete` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/alphabazaar/apis/alpha-bazaar-signal-server.md) · [All operations](https://skmtc.dev/alphabazaar/apis/alpha-bazaar-signal-server/llms.txt) · [OpenAPI document](https://skmtc.dev/alphabazaar/apis/alpha-bazaar-signal-server/revisions/01654ec03d07?raw)
