AddCardAssignmentAsync

Returns (Task)

Create a new card assingment for the designated person. (someone is getting a new card!)

Name Description
person
cardAssignment

Add Card Assignment Async

Example in C#

// Returns: CardAssignmentInfo
var cardAssignmentInfo = await client.AddCardAssignmentAsync(PersonInfo person, CardAssignmentInfo cardAssignment)

Example in CURL



           curl -X POST \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/people/PERSON.KEY/cards \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.CardAssignmentInfo, Feenics.Keep.WebApi.Model",
                       "Key":null,
                       "EncodedCardNumber":751535,
                       "DisplayCardNumber":"751535",
                       "ActiveOn":"2019-02-22T20:51:31.4443735Z",
                       "ExpiresOn":"2020-02-22T20:51:31.4443735Z",
                       "PinCode":null,
                       "AntiPassbackExempt":false,
                       "ExtendedAccess":false,
                       "PinExempt":false,
                       "IsDisabled":false,
                       "ManagerLevel":0,
                       "OriginalUseCount":null,
                       "CurrentUseCount":0,
                       "Note":null,
                       "HexValue":null,
                       "RecordId":null,
                       "LastUsed":null,
                       "Href":null
                   }'