AddAlarmActionAsync

Returns (Task)

Creates a new Alarm action and stores it in the designated Folder.

Name Description
folder The folder to create the alarm action in
alarmAction The alarm action information to create

Add Alarm Action Async

Example in C#

// Returns: AlarmActionInfo
var alarmActionInfo = await client.AddAlarmActionAsync(FolderInfo folder, AlarmActionInfo alarmAction);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/alarmactions \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                   "$type":"Feenics.Keep.WebApi.Model.AlarmActionInfo, Feenics.Keep.WebApi.Model",
                   "IsEnabled":false,
                   "Logged":false,
                   "GracePeriod":null,
                   "Key":null,
                   "CommonName":null,
                   "InFolderHref":null,
                   "InFolderKey":null,
                   "Links":[],
                   "ObjectLinks":null,
                   "Metadata":null,
                   "Notes":null,
                   "Tags":null,
                   "Monikers":null,
                   "Href":null
               }'