Adds multiple people to a folder in a single batch operation. Returns (Task)
Create new people(Person) in the designated Folder via batch.
| Name | Description |
|---|---|
| folder | The folder where the people will be created |
| batch | Array of PersonInfo objects to create in batch |
| autoGenerateCardNumber | When set to true, this parameter will automatically generate a card number for the new person |
| autoIncrementCardNumber | When set to true, this parameter will automatically increment the card number for the new person |
Example in C#
// Returns: Int32
var item = await client.AddPeopleBatchAsync(FolderInfo folder, PersonInfo batch, Boolean autoGenerateCardNumber, Boolean autoIncrementCardNumber);
Example in CURL
curl -X POST \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/complex \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-H 'Content-Type: application/json' \
-d '[{
"$type":"Feenics.Keep.WebApi.Model.PersonInfo, Feenics.Keep.WebApi.Model",
"GivenName":"ExamplePerson",
"Surname":"For_cUrl",
"Addresses":null,
"CardAssignments":null,
"Key":null,
"CommonName":"ExamplePersonFor_cUrl",
"InFolderHref":null,
"InFolderKey":null,
"Links":[],
"ObjectLinks":null,
"Metadata":null,
"Notes":null,
"Tags":null,
"Monikers":null,
"Href":null
}]'