Sets Access Levels of a Person in batchWill remove any Access Levels not passed into the request Returns () Sets Access Levels of a Person in batchWill remove any Access Levels not passed into the request Returns ()Exception Type: ArgumentNullException
Overview of SetAccessLevelBatchForPersonAsync goes here.
| Name | Description |
|---|---|
| person | The person to set access levels for |
| accessLevelLinkItems | The Access Level Object Link Items to set on 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 remove all Access Levels that are not included |
| personHref | The href of the person to set access levels for |
| accessLevelLinkItems | The Access Level Object Link Items to set on 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 remove all Access Levels that are not included |
| batchLink | The link on the Person to use to send the batch request |
Example in C#
// Returns: nothing
await client.SetAccessLevelBatchForPersonAsync(PersonInfo person, ObjectLinkItem accessLevelLinkItems);
Example in C#
// Returns: nothing
await client.SetAccessLevelBatchForPersonAsync(String personHref, ObjectLinkItem accessLevelLinkItems, String batchLink);
Example in CURL
curl -X PUT \
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 PUT \
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"
# }