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

# Update a comment

`PUT /comments/{comment_id}`

## Request

- Base URL: `https://api.presscart.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.presscart.com/comments/{comment_id}`
- Auth: HTTP bearer

Update a comment. Only the comment author can update their comment.

## Path parameters

- `comment_id` string, required

## Request body

- object
  - `content` object
  - `content_html` string, nullable
  - `is_internal` boolean: Whether this comment is internal (team only) or public
  - `mentions` object[], required
    - `user_id` string, uuid, required

## Response `200`

Comment updated successfully

- object
  - `id` string, required: Public comment reference.
  - `content` unknown
  - `content_html` string, nullable, required
  - `parent_comment_id` string, nullable, required: Parent comment reference. Null for root comments.
  - `is_internal` boolean, required: Whether this comment is internal (team only) or public
  - `entity_type` string, required: Type of entity being commented on (article, campaign, etc.)
  - `entity_id` string, uuid, required: ID of the entity being commented on
  - `team_id` string, uuid, required
  - `user_id` string, uuid, nullable, required: Presscart user author. Null for API-token comments with external authors.
  - `created_at` union, required
    - string, nullable
    - string
    - unknown
  - `updated_at` union, required
    - string, nullable
    - string
    - unknown
  - `deleted_at` union, required
    - string, nullable
    - string
    - unknown
  - `user` object, nullable, required
    - `first_name` string, nullable, required
    - `last_name` string, nullable, required

---

[API](https://skmtc.dev/presscart/apis/presscart-prod-api.md) · [All operations](https://skmtc.dev/presscart/apis/presscart-prod-api/llms.txt) · [OpenAPI document](https://skmtc.dev/presscart/apis/presscart-prod-api/revisions/2154581d845e?raw)
