AddCustomEventDestinationAsync

Adds a new custom event destination to a folder. Returns (Task)

This adds a Custom Event Destination object to the data base.

Name Description
folder The folder to add the custom event destination to
CustomEventDestination The custom event destination information to add (includes batch size, enabled status, linked objects flag)

Add Custom Event Destination Async

Example in C#

// Returns: CustomEventDestinationInfo
var customEventDestinationInfo = await client.AddCustomEventDestinationAsync(FolderInfo folder, CustomEventDestinationInfo CustomEventDestination);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/customeventdestinations \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.CustomEventDestinationInfo, Feenics.Keep.WebApi.Model",
                       "Enabled":false,
                       "MaxBatchSize":0,
                       "IncludeLinkedObjects":false,
                       "LastFailedOn": null,
                       "FailedCount": null,
                       "Key":null,
                       "CommonName":"CustomEventDestinationFor_cUrl",
                       "InFolderHref":null,
                       "InFolderKey":null,
                       "Links":[],
                       "ObjectLinks":null,
                       "Metadata":null,
                       "Notes":null,
                       "Tags":null,
                       "Monikers":null,
                       "Href":null
                   }'