This URL is used to update a single alert.
Resource URL
UPDATE /alerts/<alert_uuid>?sensorId=<sensor_id>&manager=<manager_name>
Request Parameters
Query Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Alert uuid | Number | Yes |
| Sensor id | Number | Yes |
| Name of the Manager. Required in case a multiple Managers are monitored with a single Manager. | String | No |
Payload Parameters:
Field Name | Description | Data Type |
|---|---|---|
| Alert state | String |
| User id | String |
Response Parameters
Following fields are returned.
Field Name | Description | Data Type |
|---|---|---|
status | Set to 1 if the operation was successful, -1 otherwise | Number |
Example
Request
UPDATE https://<NSM_IP>/sdkapi/alerts/66692334234234
{
"alertState": "Acknowledged",
"assignTo": "admin"
}Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 9803 | Invalid alert id |
2 | 404 | 9803 | Sensor id is required |
3 | 404 | 9803 | Manager name is required |