---
title: "Post Comments"
method: POST
path: "/api/v2/Alerts/{alertId}/comment"
tags: ["Alerts"]
---

# Post Comments

`POST /api/v2/Alerts/{alertId}/comment`

Post a user comment on an alert’s timeline by invoking the following endpoint:

  > `POST https://YourAccount.lacework.net/api/v2/Alerts/{alertId}/comment` 

 For details about alert timelines, see [Timeline](https://docs.fortinet.com/document/forticnapp/latest/administration-guide/772309/view-alerts#timeline).

## Path parameters

- `alertId` string, required

## Headers

- `Authorization` string, required
- `Content-Type` string, required

## Request body

- object
  - `comment` string, required

## Response `200`

No Error (Posting a comment to an alert)

- AlertsTimelineResponseSchema
  - `data` object[]
    - `alertChannel` object — The name of the alert channel.
    - `id` number — The timeline item identifier.
    - `alertId` number — The alert identifier.
    - `createdTime` string — The created time of the timeline item.
    - `entryType` string — The type of timeline item.
    - `entryAuthorType` string — The timeline item author type, among `SystemUpdate`, `UserUpdate`, or `Integration`.
    - `intgGuid` string — The integration's globally unique identifier.
    - `message` object — The message associated with the timeline item.
    - `externalTime` string — The timestamp when the timeline item was generated according to the external alert platform.
    - `user` object — The user who created the timeline item.
    - `external` boolean — Whether the timeline item was externally generated.
    - `updateContext` object — Context information associated with the timeline item.
    - `alertIntegration` object — Information about the alert channel integration.

## Other responses

- `4XX` — Client Error
- `5XX` — Internal Server Error

---

[API](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation.md) · [All operations](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lacework/forticnapp-api-2-0-documentation/revisions/7015f76895f2/schema)
