AddScheduledAccessLevelBatchForPersonAsync

Adds Scheduled Access Levels to a Person in batchWill replace any Scheduled Access Level Object Links that already exist Returns () Adds Scheduled Access Levels to a Person in batchWill replace any Scheduled Access Level Object Links that already exist Returns ()Exception Type: ArgumentNullException

Overview of AddScheduledAccessLevelBatchForPersonAsync goes here.

Name Description
person The person to add scheduled access levels to
scheduledAccessLevelLinkItems The Scheduled Access Level Object Link Items to add to 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 replace all Scheduled Access Level Object Links that already exist
personHref The href of the person to add scheduled access levels to
scheduledAccessLevelLinkItems The Scheduled Access Level Object Link Items to add to 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 replace all Scheduled Access Level Object Links that already exist
batchLink The link on the Person to use to send the batch request

Add Scheduled Access Level Batch For Person Async

Example in C#

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

Add Scheduled Access Level Batch For Person Async

Example in C#

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

Example in CURL



           curl -X POST \
               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 POST \
               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"
               # }