UpdateAlarmDefinitionAsync

Update an existing Alarm Definition Returns (Task.)

Save changes to the designated Alarm definition.

Name Description
alarmDefinition The alarm definition.

Update Alarm Definition Async

Example in C#

// Returns: nothing
await client.UpdateAlarmDefinitionAsync(AlarmDefinitionInfo alarmDefinition)

Example in CURL



           curl -X PUT \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/alarmdefinitions/ALARMDEFINTION.KEY \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                   "$type":"Feenics.Keep.WebApi.Model.AlarmDefinitionInfo, Feenics.Keep.WebApi.Model",
                   "Priority":null,
                   "MessageTemplateLong":null,
                   "MessageTemplateShort":null,
                   "RequiresAcknowledgement":null,
                   "FilterQuery":null,
                   "Key":"ALARMDEFINTION.KEY",
                   "CommonName":"AlarmDefinition_for_cURL",
                   "InFolderHref":"/api/f/INSTANCE.KEY",
                   "InFolderKey":"INSTANCE.KEY",
                   "Links":
                   [
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"EventSources",
                           "Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"collections/eventsources",
                               "Text":"Event Sources"
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"EventTypes",
                           "Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"collections/eventtypes",
                               "Text":"Event Types"
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"EmailTemplate",
                           "Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"collections/emailtemplate",
                               "Text":"Email Template"
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"TextTemplate",
                           "Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"collections/texttemplate",
                               "Text":"Text Template"
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"Subscribers",
                           "Anchor":
                           {
                           "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                           "Href":"collections/subscribers",
                           "Text":"Subscribers"
                           }
                       },
                       {	
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"AlarmActions",
                           "Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"collections/alarmactions",
                               "Text":"Alarm Actions"
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"Meta",
                           "Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"meta",
                               "Text":"Metadata"
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"Monikers",
                           "Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"monikers",
                               "Text":"Monikers"
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"CommonName",
                           "Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"commonname",
                               "Text":"Common Name"
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"Images",
                           "Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"images",
                               "Text":"Images"
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"TakeOwnership",
                           "Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"takeownership",
                               "Text":"Take Ownership"
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"Connections",
                           "Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"connections",
                               "Text":"Connected Objects"
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"References","
                           Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"references",
                               "Text":"Referencing Objects"
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.Link, Feenics.Keep.WebApi.Model",
                           "Relation":"Notes",
                           "Anchor":
                           {
                               "$type":"Feenics.Keep.WebApi.Model.Anchor, Feenics.Keep.WebApi.Model",
                               "Href":"notes",
                               "Text":"Notes"
                           }
                       }
                   ],
                   "ObjectLinks":
                   [
                       {
                           "$type":"Feenics.Keep.WebApi.Model.ObjectLinkItem, Feenics.Keep.WebApi.Model",
                           "Href":null,
                           "LinkedObjectKey":"INSTANCE.KEY",
                           "CommonName":"INSTANCE_NAME",
                           "Relation":"InInstance",
                           "MetaDataBson":
                           {
                               "$type":"System.Byte[], mscorlib","$value":""
                           }
                       },
                       {
                           "$type":"Feenics.Keep.WebApi.Model.ObjectLinkItem, Feenics.Keep.WebApi.Model",
                           "Href":null,
                           "LinkedObjectKey":"INSTANCE.KEY",
                           "CommonName":"INSTANCE_NAME",
                           "Relation":"InstanceScope",
                           "MetaDataBson":
                           {
                               "$type":"System.Byte[], mscorlib",
                               "$value":""
                           }
                       }
                   ],
                   "Metadata":[],
                   "Notes":[],
                   "Tags":[],
                   "Monikers":[],
                   "Href":"/api/f/INSTANCE.KEY/alarmdefinitions/ALARMDEFINTION.KEY"
               }'