AddPersonAsync

Returns (Task)

Create new Person in the designated Folder.

Name Description
folder
item
autoMobileInvite When set to true, this parameter will automatically send the newly created person a mobile invite for Feenics One
autoAccessLevel When set to true, this parameter will automatically add all the default access levels for the selected badge type

Add Person Async

Example in C#

// Returns: PersonInfo
var personInfo = await client.AddPersonAsync(FolderInfo folder, PersonInfo item, Boolean autoMobileInvite, Boolean autoAccessLevel);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people \
               -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
                   }'