---
title: "Update problem comment"
method: PATCH
path: "/problems/{problemId}/comments"
tags: ["Problem Comments"]
---

# Update problem comment

`PATCH /problems/{problemId}/comments`

## Request

- Base URL: `https://app.freyavoice.ai/api/v2`
- URL: `https://app.freyavoice.ai/api/v2/problems/{problemId}/comments`
- Auth: HTTP bearer

Updates a comment's content.

## Path parameters

- `problemId` string, uuid, required: Problem ID

## Request body

- object
  - `workspaceId` string, uuid, required: Workspace ID
  - `commentId` string, uuid, required: Comment ID
  - `content` string, required: Updated comment content

## Response `200`

Comment updated

- object
  - `success` true, required
  - `data` object, required
    - `message` string, required
    - `result` object, required
      - `success` boolean, required
      - `comment` object, required
        - `id` string, required
        - `problemId` string, required
        - `authorId` string, required
        - `authorName` string, nullable
        - `content` string, required
        - `createdAt` string, required
        - `updatedAt` string, required

## Other responses

- `400`: Validation error
- `401`: Missing or invalid token
- `404`: Problem or comment not found
- `500`: Server error

---

[API](https://skmtc.dev/freyavoice/apis/freyavoice-api.md) - [All operations](https://skmtc.dev/freyavoice/apis/freyavoice-api/llms.txt) - [OpenAPI document](https://skmtc.dev/freyavoice/apis/freyavoice-api/revisions/153d120f0c73?raw)
