[Obsolete]Async invoke of HTTP POST request suppling a new PermissionItem to the baseInfo.Href / permissions end point. The Permission item is constructed by the metod from the supplied parametersIf the user or group already has a set of permissions for this resource, that entire set of permissions will be replace with the set of permissions provided in this call. Returns (Task.)
| Name | Description |
|---|---|
| baseInfo | The Resource to update the permissions for. |
| userId | The Key value of the User or Group |
| includeChildren | if true and if setting permissions on a folder all child objects will have the same permissions set |
| privileges | The array ofvalues the user/group will have. |
Example in C#
// Returns: nothing
await client.SetPermissionsAsync(BaseInfo baseInfo, String userId, Boolean includeChildren, Privilege privileges);
Example in CURL
curl -X POST \
https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/RESOURCE.KEY/permissions?includeChildren=false \
-H 'Authorization: Bearer TOKEN_GOES_HERE' \
-H 'Content-Type: application/json' \
-d '{
"$type": "Feenics.Keep.WebApi.Model.PermissionItem, Feenics.Keep.WebApi.Model",
"UserId": "USER.KEY",
"Privileges": ["Read", "Update"]
}'