Add a new person to the folder. Returns (Task) [Obsolete] Use CardGenerationSettings metadata on each of item.CardAssignments instead. Returns (Task)
Create new Person in the designated Folder.
| Name | Description |
|---|---|
| folder | The folder where the person will be created |
| item | The person information to create |
| autoMobileInvite | When set to true, this parameter will automatically send the newly created person a mobile invite for acre One |
| autoAccessLevel | When set to true, this parameter will automatically add all the default access levels for the selected badge type |
| folder | The folder where the person will be created |
| item | The person information to create |
| autoMobileInvite | When set to true, this parameter will automatically send the newly created person a mobile invite for acre One |
| autoAccessLevel | When set to true, this parameter will automatically add all the default access levels for the selected badge type |
| autoGenerateCardNumber | Sets CardGenerationSettings metadata on each of item.CardAssignments to generate a random card number |
| autoIncrementCardNumber | Sets CardGenerationSettings metadata on each of item.CardAssignments to generate the lowest available card number |
Example in C#
// Returns: PersonInfo
var personInfo = await client.AddPersonAsync(FolderInfo folder, PersonInfo item, Boolean autoMobileInvite, Boolean autoAccessLevel);
Example in C#
// Returns: PersonInfo
var personInfo = await client.AddPersonAsync(FolderInfo folder, PersonInfo item, Boolean autoMobileInvite, Boolean autoAccessLevel, Boolean autoGenerateCardNumber, Boolean autoIncrementCardNumber);
Example in CURL
curl -X POST \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people?autoMobileInvite=false&autoAccessLevel=false \
-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?autoMobileInvite=false&autoAccessLevel=false \
-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"
}'