AddAccessLevelGroupBatchForPersonAsync

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

Overview of AddAccessLevelGroupBatchForPersonAsync goes here.

Name Description
person The person to add access level groups to
accessLevelGroupLinkItems The Access Level Group Object Link Items to add to the PersonAll Object Link Items provided must have the relation ‘AccessLevelGroup’Each Object Link Item’s MetaDataBson must be a valid Base64 string that is encoded from a BsonDocumentWill replace all Access Level Group Object Links that already exist
personHref The href of the person to add access level groups to
accessLevelGroupLinkItems The Access Level Group Object Link Items to add to the PersonAll Object Link Items provided must have the relation ‘AccessLevelGroup’Each Object Link Item’s MetaDataBson must be a valid Base64 string that is encoded from a BsonDocumentWill replace all Access Level Group Object Links that already exist
batchLink The link on the Person to use to send the batch request

Add Access Level Group Batch For Person Async

Example in C#

// Returns: nothing
await client.AddAccessLevelGroupBatchForPersonAsync(PersonInfo person, ObjectLinkItem accessLevelGroupLinkItems);

Add Access Level Group Batch For Person Async

Example in C#

// Returns: nothing
await client.AddAccessLevelGroupBatchForPersonAsync(String personHref, ObjectLinkItem accessLevelGroupLinkItems, String batchLink);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/PERSON.KEY/accesslevelgroupbatch \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -d '[
                     {
                       "LinkedObjectKey": "{ACCESSLEVELGROUP1.KEY}",
                       "Relation": "AccessLevelGroup",
                       "MetaDataBson": "JwAAAANmb28AHQAAAAJfdAAHAAAASlZhbHVlAARfdgAFAAAAAAAA",
                       "AddAsTag": false
                     },
                     {
                       "LinkedObjectKey": "{ACCESSLEVELGROUP2.KEY}",
                       "Relation": "AccessLevelGroup",
                       "MetaDataBson": "JwAAAANmb28AHQAAAAJfdAAHAAAASlZhbHVlAARfdgAFAAAAAAAA",
                       "AddAsTag": false
                     }
                   ]'
               # MetaDataBson represents
               # {
               #   "foo": "bar"
               # }
            

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/PERSON.KEY/accesslevelgroupbatch \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -d '[
                     {
                       "LinkedObjectKey": "{ACCESSLEVELGROUP1.KEY}",
                       "Relation": "AccessLevelGroup",
                       "MetaDataBson": "JwAAAANmb28AHQAAAAJfdAAHAAAASlZhbHVlAARfdgAFAAAAAAAA",
                       "AddAsTag": false
                     },
                     {
                       "LinkedObjectKey": "{ACCESSLEVELGROUP2.KEY}",
                       "Relation": "AccessLevelGroup",
                       "MetaDataBson": "JwAAAANmb28AHQAAAAJfdAAHAAAASlZhbHVlAARfdgAFAAAAAAAA",
                       "AddAsTag": false
                     }
                   ]'
               # MetaDataBson represents
               # {
               #   "foo": "bar"
               # }