Create an Access Level

Assuming your Instance is brand new and blank, one of the first things you will want to make is an Access Level. Thus, we will walk through how to create one now.

An Access Level, to be useful, needs to have people assigned to it and it needs to be connected to readers connected to a schedule. Since we are assuming the instance is blank those will have to be added to our Access Level after they are created.

For more information on Access Levels and the methods used please look at AccessLevelInfo.

Example in C#

var accessLevel = await client.AddAccessLevelAsync(currentInstance, 
   new AccessLevelInfo{
       CommonName = "StandardAccessLevel"
});

Example in CURL

curl -X POST \
    https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/accesslevels \
    -H 'Authorization: Bearer TOKEN_GOES_HERE' \
    -H 'Content-Type: application/json' \
    -d '{
        "$type":"Feenics.Keep.WebApi.Model.AccessLevelInfo, Feenics.Keep.WebApi.Model",
        "Index":0,
        "AccessLevelEntries":null,
        "ElevatorAccessLevelEntries":null,
        "EscortType":0,
        "StartsOn":null,
        "EndsOn":null,
        "Key":null,
        "CommonName":"StandardAccessLevel",
        "InFolderHref":null,
        "InFolderKey":null,
        "Links":[],
        "ObjectLinks":null,
        "Metadata":null,
        "Notes":null,
        "Tags":null,
        "Monikers":null,
        "Href":null
    }'