---
title: "Updates a specific comment."
method: PATCH
path: "/v1/{accountId}/incidents/{incidentId}/comments/{commentId}"
tags: ["Update Specific Comment"]
---

# Updates a specific comment.

`PATCH /v1/{accountId}/incidents/{incidentId}/comments/{commentId}`

## Request

- Base URL: `https://api.usa.cloud.watchguard.com/rest/threatsync/management`
- URL: `https://api.usa.cloud.watchguard.com/rest/threatsync/management/v1/{accountId}/incidents/{incidentId}/comments/{commentId}`
- Auth: API key in header `WatchGuard-API-Key` and HTTP bearer
- TypeScript: <https://skmtc.dev/watchguard/apis/threatsync-management-api/docs/v1/:accountId/incidents/:incidentId/comments/:commentId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update a specific comment.

## Path parameters

- `accountId` string, required
- `incidentId` string, required
- `commentId` string, required

## Request body

- object
  - `comment` string, required: Updated comment.

## Response `200`

Successful response.

- union
  - Comment: Create a comment for a specific incident.
    - `id` string: ID of a comment.
    - `incidentId` string: ID of an incident.
    - `account` string: Account ID.
    - `user` string: User name.
    - `comment` string: The comment added to the specified incident.
    - `creationTime` string: The time the comment was created.
  - CommentWithActionTransition: Create a comment for a specific incident.
    - `id` string: ID of a comment.
    - `incidentId` string: ID of an incident.
    - `account` string: Account ID.
    - `user` string: User name.
    - `comment` string: The comment added to the specified incident.
    - `creationTime` string: The time the comment was created.
    - `command` string: The action that was created.
    - `actionId` string: ID of an Action.
    - `context` string: Context type whether an incident status is updated or a new action is created.
  - CommentWithIncidentTransition: Create a comment for a specific incident.
    - `id` string: ID of a comment.
    - `incidentId` string: ID of an incident.
    - `account` string: Account ID.
    - `user` string: User name.
    - `comment` string: The comment added to the specified incident.
    - `creationTime` string: The time the comment was created.
    - `newStatus` string: New incident status.
    - `context` string: Context type whether an incident status is updated or a new action is created.
  - object
    - `lastUpdateTime` string: Last updated time of the comment.

## Other responses

- `default`: Error response.

---

[API](https://skmtc.dev/watchguard/apis/threatsync-management-api.md) - [All operations](https://skmtc.dev/watchguard/apis/threatsync-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/watchguard/apis/threatsync-management-api/revisions/2993b1908d27?raw)
