---
title: "Update a comment"
method: PUT
path: "/v3/comments/{comment_id}"
tags: ["Tags and Comments"]
---

# Update a comment

`PUT /v3/comments/{comment_id}`

Update the body of an existing comment. Only the comment's creator can update it.<br><br>This endpoint does not cost any credits to execute.

## Path parameters

- `comment_id` string, uuid, required — The ID of the comment to update.

## Query parameters

- `organization_id` string, uuid, required — The ID of a Censys organization to associate the request with. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional) for more information.

## Headers

- `X-Organization-ID` string, uuid — The ID of a Censys organization to associate the request with. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional) for more information. Note: The header parameter is supported for atypical use cases; we recommend always providing this field via the query parameter.

## Request body

- UpdateCommentInputBody
  - `body` string, required — The updated comment body text.

## Response `200`

Comment updated successfully

- ResponseEnvelopeComment
  - `result` Comment
    - `asset_id` string, required — The identifier of the commented asset (host IP, certificate SHA-256 fingerprint, or web property domain/IP:port).
    - `asset_type` 'host' | 'certificate' | 'web_property' | 'unknown', required — The inferred type of the asset.
    - `body` string, required — The comment body text.
    - `created_at` string, date-time, required — RFC3339 timestamp when the comment was created.
    - `created_by` string, uuid, required — The user ID of the user who created the comment.
    - `id` string, uuid, required — The unique ID of the comment.
    - `platform_ref` string, required — A direct URL to the asset in the Censys platform.
    - `updated_at` string, date-time, required — RFC3339 timestamp when the comment was last updated.

## Other responses

- `401` — Request does not contain a valid Authorization token
- `403` — User does not have permission to access this data
- `404` — Comment not found
- `422` — Invalid input
- `500` — Internal server error

---

[API](https://skmtc.net/censys/apis/censys-platform-api.md) · [All operations](https://skmtc.net/censys/apis/censys-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/censys/censys-platform-api/revisions/261c916bf05b/schema)
