Create a new comment

This will create a new comment.

POST https://uptime.betterstack.com/api/v2/incidents/{incident_id}/comments

URL parameters

incident_id
required string

Headers

Authorization
required string
Content_Type
string

Body parameters

content
required string
201

Response body

{
  "data": {
    "id": "1",
    "type": "incident_comment",
    "attributes": {
      "id": 1,
      "content": "posted from API"
    }
  }
}
403

Example cURL

Example
curl --request POST \
  --url https://uptime.betterstack.com/api/v2/incidents/1/ \
  --header "Authorization: Bearer $TEAM_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"content": "posted from API"}'