AddAreaAuthorityAsync

Creates a new area authority in the specified folder. Returns (Task)

Create an Area Authority in the designated Folder.

Name Description
folder The folder where the area authority will be created
commonName The common name for the area authority
area The Bosch area to link to this authority
authorityLevel The Bosch authority level to link to this authority

Add Area Authority Async

Example in C#

// Returns: AreaAuthorityInfo
var areaAuthorityInfo = await client.AddAreaAuthorityAsync(FolderInfo folder, String commonName, BoschAreaInfo area, BoschAuthorityLevelInfo authorityLevel);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/areaauthorities \
                -H 'Authorization: Bearer TOKEN_GOES_HERE'
                -H 'Content-Type: application/json' \
                -d '{
                       "$type":"Feenics.Keep.WebApi.Model.AreaAuthorityInfo, Feenics.Keep.WebApi.Model",
                       "Key":null,
                       "CommonName":"AreaAuthorityFor_cUrlExample",
                       "InFolderHref":null,
                       "InFolderKey":null,
                       "Links":[],
                       "ObjectLinks":
                       [
                           {
                               "$type":"Feenics.Keep.WebApi.Model.ObjectLinkItem, Feenics.Keep.WebApi.Model",
                               "Href":"/api/f/INSTANCE.KEY/boschpanels/BOSCHPANEL.KEY/boschareas/BOSCHAREA.KEY",
                               "LinkedObjectKey":"BOSCHAREA.KEY",
                               "CommonName":"BoschAreaFor_cUrl",
                               "Relation":"BoschArea",
                               "MetaDataBson":null
                           },
                           {
                               "$type":"Feenics.Keep.WebApi.Model.ObjectLinkItem, Feenics.Keep.WebApi.Model",
                               "Href":"/api/f/INSTANCE.KEY/boschpanels/BOSCHPANEL.KEY/boschauthoritylevels/BOSCHAUTHORITYLEVEL.KEY",
                               "LinkedObjectKey":"BOSCHAUTHORITYLEVEL.KEY",
                               "CommonName":"BoschAuthorityLevelFor_cUrl",
                               "Relation":"BoschAuthorityLevel",
                               "MetaDataBson":null
                           }
                       ],
                       "Metadata":null,
                       "Notes":null,
                       "Tags":null,
                       "Monikers":null,
                       "Href":null
                   }'