AddAccessLevelAsync

Add the provided accesslevel to the folder.The folder must already exist. The AccessLevel must not already exist. Returns (Task.)Exception Type: NullReferenceExceptionPost failed to get an Href as the result

Creates a new access level.

Name Description
folder The folder.
item The item.

Add Access Level Async

Example in C#

// Returns: AccessLevelInfo
var accessLevelInfo = await client.AddAccessLevelAsync(FolderInfo folder, AccessLevelInfo item)

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":"Example_for_cURL",
                   "InFolderHref":null,
                   "InFolderKey":null,
                   "Links":[],
                   "ObjectLinks":null,
                   "Metadata":null,
                   "Notes":null,
                   "Tags":null,
                   "Monikers":null,
                   "Href":null
              }'