AddAccessLevelBatchForPersonAsync

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

Overview of AddAccessLevelBatchForPersonAsync goes here.

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

Add Access Level Batch For Person Async

Example in C#

// Returns: nothing
await client.AddAccessLevelBatchForPersonAsync(PersonInfo person, ObjectLinkItem accessLevelLinkItems);

Add Access Level Batch For Person Async

Example in C#

// Returns: nothing
await client.AddAccessLevelBatchForPersonAsync(String personHref, ObjectLinkItem accessLevelLinkItems, String batchLink);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/PERSON.KEY/accesslevelbatch2 \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -d '[
                     {
                       "LinkedObjectKey": "{ACCESSLEVEL1.KEY}",
                       "Relation": "AccessLevel",
                       "MetaDataBson": "JwAAAANmb28AHQAAAAJfdAAHAAAASlZhbHVlAARfdgAFAAAAAAAA",
                       "AddAsTag": false
                     },
                     {
                       "LinkedObjectKey": "{ACCESSLEVEL2.KEY}",
                       "Relation": "AccessLevel",
                       "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/accesslevelbatch2 \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -d '[
                     {
                       "LinkedObjectKey": "{ACCESSLEVEL1.KEY}",
                       "Relation": "AccessLevel",
                       "MetaDataBson": "JwAAAANmb28AHQAAAAJfdAAHAAAASlZhbHVlAARfdgAFAAAAAAAA",
                       "AddAsTag": false
                     },
                     {
                       "LinkedObjectKey": "{ACCESSLEVEL2.KEY}",
                       "Relation": "AccessLevel",
                       "MetaDataBson": "JwAAAANmb28AHQAAAAJfdAAHAAAASlZhbHVlAARfdgAFAAAAAAAA",
                       "AddAsTag": false
                     }
                   ]'
               # MetaDataBson represents
               # {
               #   "foo": "bar"
               # }