AddCardFormatAsync

Adds a new card format to a folder Returns (Task)

Create a new Card Format in the designated Folder.

Name Description
folder The folder to add the card format to
cardFormat The card format information to add (includes bit lengths, parity, facility code)

Add Card Format Async

Example in C#

// Returns: CardFormatInfo
var cardFormatInfo = await client.AddCardFormatAsync(FolderInfo folder, CardFormatInfo cardFormat);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/cardformats \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.CardFormatInfo, Feenics.Keep.WebApi.Model",
                       "NumberOfBits":26,
                       "FacilityCodeStartingAt":1,
                       "FacilityCodeLength":8,
                       "CardNumberStartingAt":9,
                       "CardNumberLength":16,
                       "IssueCodeStartingAt":0,
                       "IssueCodeLength":0,
                       "EvenParityBitsStartingAt":0,
                       "EvenParityBitsLength":13,
                       "OddParityBitsStartingAt":13,
                       "OddParityBitsLength":13,
                       "Offset":0,
                       "MagneticFormat":false,
                       "FacilityCode":45,
                       "MinCardNumberDigits":0,
                       "ReverseBitStream":false,
                       "CardFieldAsLargeEncodedNumber":false,
                       "ReverseBytes":false,
                       "EnableSpecial37BitParityCheck":false,
                       "ShouldConvert200BitTo128":false
                       "Key":null,
                       "CommonName":"cURL_Example_Format",
                       "InFolderHref":null,
                       "InFolderKey":null,
                       "Links":[],
                       "ObjectLinks":null,
                       "Metadata":null,
                       "Notes":null,
                       "Tags":null,
                       "Monikers":null,
                       "Href":null
                   }'