SetScheduledAccessLevelGroupBatchForPersonAsync

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

Overview of SetScheduledAccessLevelGroupBatchForPersonAsync goes here.

Name Description
person The person to set scheduled access level groups for
scheduledAccessLevelGroupLinkItems The Scheduled Access Level Group Object Link Items to set on the PersonAll Object Link Items provided must have the relation ‘ScheduledAccessLevelGroup’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 Level Groups that are not included
personHref The href of the person to set scheduled access level groups for
scheduledAccessLevelGroupLinkItems The Scheduled Access Level Group Object Link Items to set on the PersonAll Object Link Items provided must have the relation ‘ScheduledAccessLevelGroup’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 Level Groups that are not included
batchLink The link on the Person to use to send the batch request

Set Scheduled Access Level Group Batch For Person Async

Example in C#

// Returns: nothing
await client.SetScheduledAccessLevelGroupBatchForPersonAsync(PersonInfo person, ObjectLinkItem scheduledAccessLevelGroupLinkItems);

Set Scheduled Access Level Group Batch For Person Async

Example in C#

// Returns: nothing
await client.SetScheduledAccessLevelGroupBatchForPersonAsync(String personHref, ObjectLinkItem scheduledAccessLevelGroupLinkItems, String batchLink);

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/PERSON.KEY/scheduledaccesslevelgroupbatch \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -d '[
                     {
                       "LinkedObjectKey": "{ACCESSLEVELGROUP1.KEY}",
                       "Relation": "ScheduledAccessLevelGroup",
                       "MetaDataBson": "XAAAAAJBY3RpdmVPbgAdAAAAMjAyNS0xMC0xMFQxNDoxMzoxNi44MjExMTcwWgACRXhwaXJlc09uAB0AAAAyMDI1LTEwLTEwVDE1OjEzOjE2LjgyNDk1MDBaAAA=",
                       "AddAsTag": false
                     },
                     {
                       "LinkedObjectKey": "{ACCESSLEVELGROUP2.KEY}",
                       "Relation": "ScheduledAccessLevelGroup",
                       "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/scheduledaccesslevelgroupbatch \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -d '[
                     {
                       "LinkedObjectKey": "{ACCESSLEVELGROUP1.KEY}",
                       "Relation": "ScheduledAccessLevelGroup",
                       "MetaDataBson": "XAAAAAJBY3RpdmVPbgAdAAAAMjAyNS0xMC0xMFQxNDoxMzoxNi44MjExMTcwWgACRXhwaXJlc09uAB0AAAAyMDI1LTEwLTEwVDE1OjEzOjE2LjgyNDk1MDBaAAA=",
                       "AddAsTag": false
                     },
                     {
                       "LinkedObjectKey": "{ACCESSLEVELGROUP2.KEY}",
                       "Relation": "ScheduledAccessLevelGroup",
                       "MetaDataBson": "XAAAAAJBY3RpdmVPbgAdAAAAMjAyNS0xMC0xMFQxNDoxMzoxNi44MjExMTcwWgACRXhwaXJlc09uAB0AAAAyMDI1LTEwLTEwVDE1OjEzOjE2LjgyNDk1MDBaAAA=",
                       "AddAsTag": false
                     }
                   ]'
               # MetaDataBson represents
               # {
               #   "ActiveOn": "2025-10-10T14:13:16.8211170Z",
               #   "ExpiresOn": "2025-10-10T15:13:16.8249500Z"
               # }