---
title: "Edit, resolve, or reopen a comment"
method: PATCH
path: "/handovers/{id}/comments/{commentId}"
---

# Edit, resolve, or reopen a comment

`PATCH /handovers/{id}/comments/{commentId}`

## Request

- Base URL: `https://handover.sh/api/v1`
- URL: `https://handover.sh/api/v1/handovers/{id}/comments/{commentId}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required
- `commentId` string, required

## Request body

- UpdateComment
  - `body` string
  - `mentionPrincipalIds` string[]
  - `target` AnnotationTarget
    - `revisionId` string, required
    - `artifactId` string, required
    - `targetKind` 'text' | 'code' | 'html', required
    - `selector` AnnotationSelector, required
      - `exact` string, required
      - `prefix` string
      - `suffix` string
      - `startOffset` integer
      - `endOffset` integer
      - `startLine` integer
      - `endLine` integer
  - `status` 'open' | 'resolved'
  - `resolvedRevisionId` string, nullable

## Response `200`

Updated collaboration thread

- HandoverThreadEnvelope
  - `data` object, required

## Other responses

- `403`: Request error

---

[API](https://skmtc.dev/handover/apis/handover-api.md) · [All operations](https://skmtc.dev/handover/apis/handover-api/llms.txt) · [OpenAPI document](https://skmtc.dev/handover/apis/handover-api/revisions/846b2a3091df?raw)
