> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/api-reference/cloud-cost-management/anomaly-comments.md).

# Anomaly Comments

APIs to manage anomaly comments

## List anomaly comments

> List comments for the given anomaly

```json
{"openapi":"3.0.1","info":{"title":"CCM NextGen API Reference","version":"3.0"},"tags":[{"name":"Anomaly Comments","description":"APIs to manage anomaly comments"}],"servers":[{"url":"https://nextgen-ce-64dddb4ffb-zlv72/gateway/ccm/api"}],"paths":{"/anomaly/v2/comment":{"get":{"tags":["Anomaly Comments"],"summary":"List anomaly comments","description":"List comments for the given anomaly","operationId":"listAnomalyComments","parameters":[{"name":"accountIdentifier","in":"query","description":"Account Identifier for the Entity.","required":true,"schema":{"type":"string"}},{"name":"anomalyId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"List anomaly comments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseDTOListAnomalyComment"}}}}}}}},"components":{"schemas":{"ResponseDTOListAnomalyComment":{"type":"object","properties":{"status":{"type":"string","enum":["SUCCESS","FAILURE","ERROR"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/AnomalyComment"}},"metaData":{"type":"object"},"correlationId":{"type":"string"}}},"AnomalyComment":{"required":["accountId","anomalyId"],"type":"object","properties":{"uuid":{"type":"string"},"accountId":{"type":"string"},"anomalyId":{"type":"string","description":"Identifier of the anomaly this comment belongs to"},"comment":{"type":"string"},"createdBy":{"$ref":"#/components/schemas/EmbeddedUser"},"createdAt":{"type":"integer","format":"int64"}}},"EmbeddedUser":{"type":"object","properties":{"uuid":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"externalUserId":{"type":"string"}}}}}}
```

## Save anomaly comment

> Save comment for the given anomaly

```json
{"openapi":"3.0.1","info":{"title":"CCM NextGen API Reference","version":"3.0"},"tags":[{"name":"Anomaly Comments","description":"APIs to manage anomaly comments"}],"servers":[{"url":"https://nextgen-ce-64dddb4ffb-zlv72/gateway/ccm/api"}],"paths":{"/anomaly/v2/comment":{"post":{"tags":["Anomaly Comments"],"summary":"Save anomaly comment","description":"Save comment for the given anomaly","operationId":"saveAnomalyComment","parameters":[{"name":"accountIdentifier","in":"query","description":"Account Identifier for the Entity.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Comment details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnomalyComment"}}},"required":true},"responses":{"default":{"description":"Save anomaly comment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseDTOString"}}}}}}}},"components":{"schemas":{"AnomalyComment":{"required":["accountId","anomalyId"],"type":"object","properties":{"uuid":{"type":"string"},"accountId":{"type":"string"},"anomalyId":{"type":"string","description":"Identifier of the anomaly this comment belongs to"},"comment":{"type":"string"},"createdBy":{"$ref":"#/components/schemas/EmbeddedUser"},"createdAt":{"type":"integer","format":"int64"}}},"EmbeddedUser":{"type":"object","properties":{"uuid":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"externalUserId":{"type":"string"}}},"ResponseDTOString":{"type":"object","properties":{"status":{"type":"string","enum":["SUCCESS","FAILURE","ERROR"]},"data":{"type":"string"},"metaData":{"type":"object"},"correlationId":{"type":"string"}}}}}}
```
