EngageReaderHolidayItem

Represents a holiday schedule for an Allegion Engage reader

EngageReaderHolidayItem is used to describe the holidays stored on the Engage Reader

EngageReaderHolidayItem Properties

EngageReaderHolidayItem

Field Type Inherited from Description
Action AutoUnlockActions EngageReaderHolidayItem Gets or sets the auto-unlock action to perform during the holiday
EndingDate DateTime EngageReaderHolidayItem Gets or sets the end date and time of the holiday schedule
StartingDate DateTime EngageReaderHolidayItem Gets or sets the start date and time of the holiday schedule

JSON Structure of EngageReaderHolidayItem

{
   "Action"	:	"[AutoUnlockActions](/object-model/autounlockactions)",
   "EndingDate"	:	"DateTime",
   "StartingDate"	:	"DateTime"
}

Delete Engage Reader Holiday Async

Example in C#

// Returns: nothing
await client.DeleteEngageReaderHolidayAsync(EngageReaderInfo reader, Int32 index);

Example in CURL



           curl -X DELETE \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/engagereaders/ENGAGEREADER.KEY/readerholidays/1 \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' 
            

Update Engage Reader Holiday Async

Example in C#

// Returns: EngageReaderInfo
var engageReaderInfo = await client.UpdateEngageReaderHolidayAsync(EngageReaderInfo reader, Int32 index, EngageReaderHolidayItem holidayItem);

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/engagereaders/ENGAGEREADER.KEY/readerholidays/1 \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                   "$type":"Feenics.Keep.WebApi.Model.EngageReaderHolidayItem, Feenics.Keep.WebApi.Model",
                   "StartingDate":"0001-01-01T00:00:00",
                   "EndingDate":"0001-01-01T00:00:00",
                   "Action":0
               }'