Skip to content

Add message to alert

PUT /alert/<alertKs>/message

Description

Add a message to an open alert. Success (204) is also returned when the alert does not exist.

Path parameters

Param Description
alertKs Alert key string (ks).

Body

Param Type Required Description
message string Yes Message to add (max 240 characters, default empty).

Return codes

Error code Reason
204 Success.
400 Invalid body or alert key string.
401 Invalid or missing token.
403 Insufficient permissions (required: API+ALERT_CHANGE).

Example

Curl request:

curl \
    -X PUT 'https://api.infrasonar.com/alert/xxx/message' \
    -H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
    -H 'Content-Type: application/json' \
    --data-raw '{
    "message": "This is an example message."
}'