Returns (Task)
Create an Area Authority in the designated Folder.
Name | Description |
---|---|
folder | |
commonName | |
area | |
authorityLevel |
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://keepapi.feenicshosting.com/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
}'