AutoUnlockScheduleItem

This is used in the EngageReaderInfo .

AutoUnlockScheduleItem is the schedule used for the Auto Unlock feature on Engage Readers

AutoUnlockScheduleItem Properties

AutoUnlockScheduleItem

Field Type Inherited from Description
Action AutoUnlockActions AutoUnlockScheduleItem Gets or sets the action to take (Passage or Secure)
DayMask Int32 AutoUnlockScheduleItem Gets or sets the day mask indicating which days this schedule applies (bitwise: Sunday=1, Monday=2, Tuesday=4, etc.)
StartTime TimeSpan AutoUnlockScheduleItem Gets or sets the start time for the auto-unlock schedule

JSON Structure of AutoUnlockScheduleItem

{
   "Action"	:	"[AutoUnlockActions](/object-model/autounlockactions)",
   "DayMask"	:	"Int32",
   "StartTime"	:	"TimeSpan"
}

Delete Auto Unlock Schedule Async

Example in C#

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

Example in CURL



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

Update Auto Unlock Schedule Async

Example in C#

// Returns: EngageReaderInfo
var engageReaderInfo = await client.UpdateAutoUnlockScheduleAsync(EngageReaderInfo reader, Int32 index, AutoUnlockScheduleItem scheduleItem);

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/engagereaders/ENGAGEREADER.KEY/autounlockschedules/1 \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                 	"$type":"Feenics.Keep.WebApi.Model.AutoUnlockScheduleItem, Feenics.Keep.WebApi.Model",
                   "StartTime":"00:00:00",
                   "DayMask":0,
               	"Action":0
               }'