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).
userId integer No Optional Id of the user adding the alert message. If omitted or null, defaults to the authenticated user for user tokens, or the assigner remains unset for container tokens.

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).
404 User (userId) not found.

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."
}'