Returns (Task)
Place Operation Rights on the provided object.
| Name | Description |
|---|---|
| folder | The folder to add the operation right to |
| appCode | The application code to associate with the operation right |
| credentialKey | The credential key to associate with the operation right |
| item | The operation right information to add |
| appliesTo | Optional objects that this operation right applies to |
Example in C#
// Returns: OperationRightInfo
var operationRightInfo = await client.AddOperationRightsAsync(FolderInfo folder, String appCode, String credentialKey, OperationRightInfo item, BaseInfo appliesTo);
Example in CURL
curl -X POST \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/operationrights?appCode=AppCode&credentialKey=CredentialKey \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-H 'Content-Type: application/json' \
-d '{
"$type":"Feenics.Keep.WebApi.Model.OperationRightInfo, Feenics.Keep.WebApi.Model",
"System":null,
"Actions":null,
"GrantType":0,
"Enabled":false,
"Key":null,
"CommonName":"OperationRightInfo",
"InFolderHref":null,
"InFolderKey":null,
"Links":[],
"ObjectLinks":[],
"Metadata":null,
"Notes":null,
"Tags":null,
"Monikers":null,
"Href":null
}'