AddPeopleBatchAsync

Adds multiple people to a folder in a single batch operation. Returns (Task) [Obsolete] Use CardGenerationSettings metadata on each person’s CardAssignments instead. 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
folder The folder where the people will be created
batch Array of PersonInfo objects to create in batch
autoGenerateCardNumber Sets CardGenerationSettings metadata on each person’s CardAssignments to generate a random card number
autoIncrementCardNumber Sets CardGenerationSettings metadata on each person’s CardAssignments to generate the lowest available card number

Add People Batch Async

Example in C#

// Returns: Int32
var item = await client.AddPeopleBatchAsync(FolderInfo folder, PersonInfo batch);

Add People Batch Async

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
                   }]'
            

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",
                       "CommonName":"ExamplePersonFor_cUrl"
                   }]'