SetScheduledAccessLevelBatchForPersonAsync

Sets Scheduled Access Levels of a Person in batchWill remove any Scheduled Access Levels not passed into the request Returns () Sets Scheduled Access Levels of a Person in batchWill remove any Scheduled Access Levels not passed into the request Returns ()Exception Type: ArgumentNullException

Overview of SetScheduledAccessLevelBatchForPersonAsync goes here.

Name Description
person The person to set scheduled access levels for
scheduledAccessLevelLinkItems The Scheduled Access Level Object Link Items to set on the PersonAll Object Link Items provided must have the relation ‘ScheduledAccessLevel’Each Object Link Item’s MetaDataBson must be a valid Base64 string that is encoded from a BsonDocument containing valid ‘ActiveOn’ and ‘ExpiresOn’ UTC date propertiesWill remove all Scheduled Access Levels that are not included
personHref The href of the person to set scheduled access levels for
scheduledAccessLevelLinkItems The Scheduled Access Level Object Link Items to set on the PersonAll Object Link Items provided must have the relation ‘ScheduledAccessLevel’Each Object Link Item’s MetaDataBson must be a valid Base64 string that is encoded from a BsonDocument containing valid ‘ActiveOn’ and ‘ExpiresOn’ UTC date propertiesWill remove all Scheduled Access Levels that are not included
batchLink The link on the Person to use to send the batch request

Set Scheduled Access Level Batch For Person Async

Example in C#

// Returns: nothing
await client.SetScheduledAccessLevelBatchForPersonAsync(PersonInfo person, ObjectLinkItem scheduledAccessLevelLinkItems);

Set Scheduled Access Level Batch For Person Async

Example in C#

// Returns: nothing
await client.SetScheduledAccessLevelBatchForPersonAsync(String personHref, ObjectLinkItem scheduledAccessLevelLinkItems, String batchLink);

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/PERSON.KEY/scheduledaccesslevelbatch \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -d '[
                     {
                       "LinkedObjectKey": "{ACCESSLEVEL1.KEY}",
                       "Relation": "ScheduledAccessLevel",
                       "MetaDataBson": "XAAAAAJBY3RpdmVPbgAdAAAAMjAyNS0xMC0xMFQxNDoxMzoxNi44MjExMTcwWgACRXhwaXJlc09uAB0AAAAyMDI1LTEwLTEwVDE1OjEzOjE2LjgyNDk1MDBaAAA=",
                       "AddAsTag": false
                     },
                     {
                       "LinkedObjectKey": "{ACCESSLEVEL2.KEY}",
                       "Relation": "ScheduledAccessLevel",
                       "MetaDataBson": "XAAAAAJBY3RpdmVPbgAdAAAAMjAyNS0xMC0xMFQxNDoxMzoxNi44MjExMTcwWgACRXhwaXJlc09uAB0AAAAyMDI1LTEwLTEwVDE1OjEzOjE2LjgyNDk1MDBaAAA=",
                       "AddAsTag": false
                     }
                   ]'
               # MetaDataBson represents 
               # {
               #   "ActiveOn": "2025-10-10T14:13:16.8211170Z",
               #   "ExpiresOn": "2025-10-10T15:13:16.8249500Z"
               # }
            

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/PERSON.KEY/scheduledaccesslevelbatch \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -d '[
                     {
                       "LinkedObjectKey": "{ACCESSLEVEL1.KEY}",
                       "Relation": "ScheduledAccessLevel",
                       "MetaDataBson": "XAAAAAJBY3RpdmVPbgAdAAAAMjAyNS0xMC0xMFQxNDoxMzoxNi44MjExMTcwWgACRXhwaXJlc09uAB0AAAAyMDI1LTEwLTEwVDE1OjEzOjE2LjgyNDk1MDBaAAA=",
                       "AddAsTag": false
                     },
                     {
                       "LinkedObjectKey": "{ACCESSLEVEL2.KEY}",
                       "Relation": "ScheduledAccessLevel",
                       "MetaDataBson": "XAAAAAJBY3RpdmVPbgAdAAAAMjAyNS0xMC0xMFQxNDoxMzoxNi44MjExMTcwWgACRXhwaXJlc09uAB0AAAAyMDI1LTEwLTEwVDE1OjEzOjE2LjgyNDk1MDBaAAA=",
                       "AddAsTag": false
                     }
                   ]'
               # MetaDataBson represents
               # {
               #   "ActiveOn": "2025-10-10T14:13:16.8211170Z",
               #   "ExpiresOn": "2025-10-10T15:13:16.8249500Z"
               # }