---
title: "Update comment"
method: PATCH
path: "/v2/optimize/comments/{comment_id}"
tags: ["comments"]
---

# Update comment

`PATCH /v2/optimize/comments/{comment_id}`

Updates a comment on a recommendation.

## Path parameters

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

## Request body

- UpdateCommentBody
  - `message` string, required — The message to update the comment on the recommendations

## Response `200`

Successful Response

- UpdateCommentResponse
  - `comment` Comment, required — A class representing a comment on a recommendation
    - `comment_id` string, required — The ID of the comment
    - `message` string, required — The message of the comment
    - `item_type` string, required — The type of the item
    - `item_id` string, required — The ID of the item
    - `author_user_id` string, required — The ID of the user who created the comment
    - `author_email` string, required — The email of the user who created the comment
    - `created_ts` integer, required — The timestamp of when the comment was created
    - `updated_ts` integer, required — The timestamp of when the comment was updated

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/cloudzero/apis/cloudzero-api-v2-resources.md) · [All operations](https://skmtc.dev/cloudzero/apis/cloudzero-api-v2-resources/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudzero/cloudzero-api-v2-resources/revisions/fd805a0e75e5/schema)
