---
title: "Edit one comment on a question of an answer request"
method: PATCH
path: "/api/questionnaires/questions/{questionId}/requests/{requestId}/comments/{commentId}"
tags: ["Questionnaire Comments"]
---

# Edit one comment on a question of an answer request

`PATCH /api/questionnaires/questions/{questionId}/requests/{requestId}/comments/{commentId}`

Rewrites the text of a single comment in the thread on one question of one answer request — the write behind the inline edit in the comment popover on the answer and review pages. Only the comment author may edit it; anyone else gets 403 `cannot_update_question_comment`, including other people at the same company. The comment must be filed against the addressed question and request, otherwise 404 `question_comment_not_found` — the same code an unknown comment answers, so the endpoint never confirms a comment the caller cannot address exists elsewhere. The edit rewrites the `updatedBy*` fields, which is what both frontends render as the comment author; `createdBy*` is immutable.

## Path parameters

- `questionId` string, required
- `requestId` string, required
- `commentId` string, required

## Request body

- object
  - `questionComment` string, required

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `id` string, required
    - `questionId` string
    - `requestId` string
    - `questionComment` string
    - `updatedByUserId` string
    - `updatedByUserName` string
    - `updatedByCompanyId` string
    - `updatedByCompanyName` string

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response

---

[API](https://skmtc.net/retraced/apis/api-reference.md) · [All operations](https://skmtc.net/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/60d6c901bc4e/schema)
