Add an Event Type to an Alarm Definition Returns (Task.)
Register an Event Type with the designated Alarm Definition.
Name | Description |
---|---|
alarmDefinition | The alarm definition. |
eventType | Type of the event. |
Example in C#
// Returns: nothing
await client.AddEventTypeToAlarmDefinitionAsync(AlarmDefinitionInfo alarmDefinition, EventTypeInfo eventType);
Example in CURL
curl -X PUT \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/alarmdefinitions/ALARMDEFINTION.KEY/collections/eventtypes \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-H 'Content-Type: application/json' \
-d '"/api/f/INSTANCE.KEY/eventtypes/EVENTTYPE.KEY"'