Update alert types
Allows editing the definition of multiple alert types at once. Only available to Garmat administrators.
Body
The parameters to define alert types
-
alert_types object
Map with the params for the different alert types
Additional properties are allowed.
PUT /api/alert_types
curl \
-X PUT http://localhost:4000/api/alert_types \
-d '{"alert_types":{"57df5898-0c40-4176-9dd4-e0c96c6c810e":{"threshold":3,"condition_over":5}}}'
Request examples
{
"alert_types": {
"57df5898-0c40-4176-9dd4-e0c96c6c810e": {
"threshold": 3,
"condition_over": 5
}
}
}
Response examples (200)
{
"data": [
{
"id": "57df5898-0c40-4176-9dd4-e0c96c6c810e",
"name": "Flame Guard Alarm",
"type": "time",
"base_tag": "FlameGuardAlarm_count",
"extra_tag": "i_xFlameAlarm",
"threshold": 5,
"condition_over": 5
}
]
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}