AddHolidayAsync

Adds a new holiday to a folder Returns (Task)

Create new Holiday in the designated Folder.

Name Description
folder The folder to add the holiday to
item The holiday information to add

Add Holiday Async

Example in C#

// Returns: HolidayInfo
var holidayInfo = await client.AddHolidayAsync(FolderInfo folder, HolidayInfo item);

Example in CURL



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