Create a Badge Type

If your set-up requires a badge to be read before a person can be granted access then you will need to set up a Badge Type to be able to assign to the people that need a card assignment (badge). Badge Types are assigned to Persons and are linked to Access Levels.

A properly created badge type should have an unique Common Name, an Absolute Expiry Date or a Sliding Expiry Span.

You can add a link to the appropriate Access Levels here as well if they are already set up but an Access Level is not required for creation, just for badge use. To add an Access Level check out BaseInfo.

For more information on Badge Types and the methods used please look at BadgeTypeInfo.

Example in C#

//Create BadgeType
var badgeType = await client.AddBadgeTypeAsync(currentInstance, new BadgeTypeInfo
    CommonName = "StandardBadgeType",
    AbsoluteExpiryDate = new DateTime(2019,8,13), //This will default to the current day/null
//Assign Access Level to BadgeType
await client.AssignConnectedObjectAsync(badgeType, accessLevel, "AccessLevel", false);  //An Access level can be on many badges

Example in CURL

#Create BadgeType
curl -X POST \ \
    -H 'Authorization: Bearer TOKEN_GOES_HERE' \
    -H 'Content-Type: application/json' \
    -d '{
        "$type":"Feenics.Keep.WebApi.Model.BadgeTypeInfo, Feenics.Keep.WebApi.Model",
#Assign Access Level to BadgeType
curl -X PUT \
  '' \
  -H 'Authorization: Bearer TOKEN_GOES_HERE'