- Url
- /V2.0/services/data/setPermissions
- HTTP Method
POST
- Description
- Update or Create Permission on Entity
- Parameters
-
Name Type Description entityId* entityId (string) The Id of entity replace boolean When replace true the permission will be override roles* roleForResource[] Acl to add - Result
Name Type Description In case of failure an error object will be returned
* indicates required fields- Samples
- The following example adds Item Level Permissions to Resources
POST /V2.0/services/data/setPermissions
{ "entityId" : "/Project/1trxaiekobdz6rdh7js4a0w6722", "replace": "false", "roles":[ {"role":"Reviewer","resource":"/AuthorizationGroup/InternalUsers"}, {"role":"Reviewer","resource":"/User/a15b4a10-4878-4395-96d1-a8354fe4935a"} ] }
POST /V2.0/services/data/setPermissions
{ "entityId" : "/Project/1trxaiekobdz6rdh7js4a0w6722", "replace": "true", "roles":[ {"role":"Reviewer","resource":"/AuthorizationGroup/InternalUsers"}, {"role":"Reviewer","resource":"/User/a15b4a10-4878-4395-96d1-a8354fe4935a"} ] }