Assign alert
PUT
/alert/<alertKs>/assign
Description
Assign an open alert to a user. The user (userId) must be marked as a member of the container. 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 |
---|---|---|---|
userId |
int | Yes | User Id of a user |
message |
string | No | Optional message (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_ASSIGN ). |
404 |
User (userId) not found or the user is not a member. |
Example
Curl request:
curl \
-X PUT 'https://api.infrasonar.com/alert/xxx/assign' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
-H 'Content-Type: application/json' \
--data-raw '{
"userId": 123
}'