---
title: "Add, update and remove comments from a recommendation"
method: POST
path: "/api/v2/recommendationsNew/{recId}/comments"
tags: ["Recommendations"]
---

# Add, update and remove comments from a recommendation

`POST /api/v2/recommendationsNew/{recId}/comments`

## Request

- Base URL: `https://api.umbrellacost.io`
- URL: `https://api.umbrellacost.io/api/v2/recommendationsNew/{recId}/comments`
- Auth: none declared. Required headers: `Authorization`, `apikey`

Update the recommendation comments

## Path parameters

- `recId` string, required

## Headers

- `Authorization` string, required
- `apikey` string, required

## Request body

- object
  - `comment` string, required: free text comment
  - `createdBy` string, required: user name to be attached to the comment
  - `commentId` string: required when updating or deleting comment

## Response `200`

- object
  - `comment` string
  - `commentId` string
  - `createdAt` string
  - `createdBy` string
  - `createdByDisplayName` string

---

[API](https://skmtc.dev/umbrellacost/apis/cost-usage.md) - [All operations](https://skmtc.dev/umbrellacost/apis/cost-usage/llms.txt) - [OpenAPI document](https://skmtc.dev/umbrellacost/apis/cost-usage/revisions/c5ae311d18ae?raw)
