---
title: "Update comment"
method: PUT
path: "/public-video-review/{link_id}/comments/{comment_id}"
tags: ["Public - Comments"]
---

# Update comment

`PUT /public-video-review/{link_id}/comments/{comment_id}`

Updates an existing comment. Allows changing the text and/or status of the comment.

## Authentication

| Parameter | Type | Description |
|-----------|------|-------------|
| `link_id` | path | Review link identifier |
| `comment_id` | path | Comment identifier |
| `token` | query | User session token |

To edit the comment text, use the same `token` used during creation. Any user can change the status to `resolved`. The token can be the same value as `link_id` or a unique identifier generated by the application.

**Example:** `550e8400-e29b-41d4-a716-446655440000`

## Behavior

- Only partial updates are allowed (send only the fields you want to change)
- To change the status, the link must have `allow_status_edit: true`
- The link must be active and not expired

## Updatable Fields

| Field | Description |
|-------|-------------|
| `text` | Comment text (max 500 characters) |
| `status` | Comment status: `open` or `resolved` |

## Path parameters

- `link_id` string, uuid, required
- `comment_id` string, uuid, required

## Query parameters

- `token` string, uuid, required

## Request body

- UpdateCommentRequest
  - `text` string — New comment text.
  - `status` 'open' | 'resolved' — Comment status: - `open`: Comment open, pending resolution - `resolved`: Comment resolved/addressed
  - `time` integer — New video timestamp in seconds.

## Response `200`

Comment updated successfully

- CommentResponse
  - `id` string, uuid — Comment unique UUID.
  - `video_id` string, uuid — UUID of the video the comment belongs to.
  - `user_id` string, uuid, nullable — UUID of the user who created the comment (available only in private API).
  - `user_name` string — Name of the user who created the comment.
  - `text` string — Comment text.
  - `status` 'open' | 'resolved' — Current comment status.
  - `time` integer — Video timestamp in seconds.
  - `reply_to` string, uuid, nullable — Parent comment UUID (null for main comments).
  - `avatar` string, uri, nullable — User avatar URL (available only in private API when user has an avatar).
  - `created_at` string, date-time — Comment creation date and time.
  - `updated_at` string, date-time — Last update date and time.

## Other responses

- `400` — Invalid input data
- `403` — Link inactive or status editing not allowed
- `404` — Comment not found

---

[API](https://skmtc.net/pandavideo/apis/api-v2.md) · [All operations](https://skmtc.net/pandavideo/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pandavideo/api-v2/versions/4fbd3c623ca9/schema)
