AddEventTypeToAppAsync

Returns (Task)

Register an Event Type with the designated App.

Name Description
app The app to add the event type to
eventTypeInfo The event type information to add

Add Event Type To App Async

Example in C#

// Returns: EventTypeInfo
var eventTypeInfo = await client.AddEventTypeToAppAsync(AppInfo app, EventTypeInfo eventTypeInfo);

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/apps/APP.KEY/eventtypes \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.EventTypeInfo, Feenics.Keep.WebApi.Model",
                       "MessageTemplateLong":null,
                       "MessageTemplateShort":null,
                       "Priority":0,
                       "RequiresAcknowledgement":false,
                       "NonLogging":false,
                       "Key":null,
                       "CommonName":"ExampleEventForCurl",
                       "InFolderHref":null,
                       "InFolderKey":null,
                       "Links":[],
                       "ObjectLinks":null,
                       "Metadata":null,
                       "Notes":null,
                       "Tags":null,
                       "Monikers":
                       [
                           {
                               "$type":"Feenics.Keep.WebApi.Model.MonikerItem, Feenics.Keep.WebApi.Model",
                               "Namespace":"cUrlExamples",
                               "Nickname":"ExampleEventForCurl"
                           }
                       ],
                       "Href":null
                   }'