AddTriggerToControllerAsync

Returns (Task)

Create and register Hg Trigger on the designated Controller.

Name Description
controller
trigger

Add Trigger To Controller Async

Example in C#

// Returns: HgTriggerInfo
var hgTriggerInfo = await client.AddTriggerToControllerAsync(ControllerInfo controller, HgTriggerInfo trigger)

Example in CURL



           curl -X POST \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/triggers \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.HgTriggerInfo, Feenics.Keep.WebApi.Model",
                       "EventTrigger":null,
                       "ManagerIndex":0,
                       "MangerLevel":0,
                       "ControllerIndex":0,
                       "Key":null,
                       "CommonName":"HgTriggerExampleFor_cUrl",
                       "InFolderHref":null,
                       "InFolderKey":null,
                       "Links":[],
                       "ObjectLinks":null,
                       "Metadata":null,
                       "Notes":null,
                       "Tags":null,
                       "Monikers":null,
                       "Href":null
                   }'