AddScheduleDurationAsync

Adds a schedule duration to a schedule. Returns (Task)

Overview of AddScheduleDurationAsync goes here.

Name Description
schedule The schedule to add the duration to
item The schedule duration item to add (with day mask, time spans, and holiday settings)

Add Schedule Duration Async

Example in C#

// Returns: nothing
await client.AddScheduleDurationAsync(ScheduleInfo schedule, ScheduleDurationItem item);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/schedules/scheduleKey/scheduledurations \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.ScheduleDurationItem, Feenics.Keep.WebApi.Model",
                       "DayMask"	:	"Int32",
                       "Duration"	:	"TimeSpan",
                       "Holiday"	:	"String",
                       "HolidayExceptions"	:	"[HolidayExceptionTypes](/object-model/holidayexceptiontypes)",
                       "StartingAt"	:	"TimeSpan"
                   }'