---
title: "Create alarm comment"
method: POST
path: "/alarms/{alarm-id}/comments"
tags: ["Alarms"]
---

# Create alarm comment

`POST /alarms/{alarm-id}/comments`

Adds a new comment to the alarm

## Path parameters

- `alarm-id` integer, required

## Request body

- object
  - `text` string, required — Comment text

## Response `200`

Comment created

## Other responses

- `401` — Access denied

## Changes

- **2026-01-30** `32f48ec94aec` — 2 breaking, 3 info
  - for the `path` request parameter `alarm-id`, the format changed from no format to `int64`
  - the request property `text` became required
  - api operation id `CreateCommentForAlarm` removed and replaced with `createAlarmComment`
  - added the optional property `description` to the response with the `401` status
  - …1 more
- **2023-02-28** `697d985c3025` — 1 breaking
  - added the new path request parameter `alarm-id`
- **2023-02-28** `910d3ad08e09` — 1 info
  - endpoint added
- **2023-02-23** `9c09a2aad349` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/netxms/apis/netxms-rest-api/changes/alarms/:alarm-id/comments/post.md)

---

[API](https://skmtc.dev/netxms/apis/netxms-rest-api.md) · [All operations](https://skmtc.dev/netxms/apis/netxms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netxms/netxms-rest-api/revisions/491c515b279a/schema)
