---
title: "Update Detection Comment"
method: PUT
path: "/connect/detection/comment/{id}"
tags: ["Detections"]
---

# Update Detection Comment

`PUT /connect/detection/comment/{id}`

Updates the comment associated with the given comment ID with the provided content.

## Path parameters

- `id` string, required

## Request body

- ModelDetectionComment
  - `createTime` string — The date and time that this object was created. This is a read-only field.
  - `detectionId` string — The detection ID to which this comment was added
  - `id` string — The ID assigned to this object by the server. This is a read-only field.
  - `kind` string — The kind of object. This is a read-only field.
  - `operation` string — The operation that was applied to the object. This is a read-only field.
  - `updateTime` string — The date and time that this object was last modified. This is a read-only field.
  - `userId` string — The user ID (or API client ID) that initiated this event. This is a read-only field.
  - `value` string — The comment text or markdown content

## Response `200`

The comment has been successfully deleted

## Other responses

- `400` — The provided input object or parameters are malformed or invalid
- `401` — Request was not properly authenticated
- `403` — Insufficient permissions for this request
- `404` — Detection was not found
- `500` — Internal SOC error; review SOC logs

---

[API](https://skmtc.net/security-onion-solutions/apis/security-onion-connect-api.md) · [All operations](https://skmtc.net/security-onion-solutions/apis/security-onion-connect-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/security-onion-solutions/security-onion-connect-api/revisions/0576ce393f8d/schema)
