---
title: "Create comment"
method: POST
path: "/v2/optimize/comments"
tags: ["comments"]
---

# Create comment

`POST /v2/optimize/comments`

Creates a comment on one or more recommendations.

## Request body

- CreateCommentBody
  - `recommendation_ids` string[], required — One or more IDs for the recommendations to add the comment to
  - `message` string, required — The comment to add to the recommendations

## Response `200`

Successful Response

- CreateCommentResponse
  - `message` string, required — The message of the comment
  - `recommendation_ids` string[] — The IDs of the recommendations that the comment was added to
  - `created_ts` integer — The timestamp of the comment

## 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)
