Add a new person to the folder. 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 |
| autoGenerateCardNumber | Generate a card number automatically when set to true |
| autoIncrementCardNumber | Increment card number automatically when set to true |
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&autoGenerateCardNumber=false&autoIncrementCardNumber=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
}'