/roles/granulars
Adds a granular role to the role with the given role ZUID.
StartFragment
In the body content, you can pass content models (schemas), instances, and item ZUID as the resource ZUID.
EndFragment
URL Endpoint
https://accounts.api.zesty.io/v1/roles/{{role_zuid}}/granulars
Authentication Header
Bearer YOUR_APP_SID
Request Body
{
"resourceZUID": "{{item_zuid}}",
"name": "",
"create": true,
"read": true,
"update": false,
"delete": false,
"publish": false,
"grant": false
}
Updates the granular roles for the give role ZUID. The resource ZUID for each granular permission must be included in the body of each update.
You can pass content models (schemas), instances, and item ZUID as the resource ZUID.
URL Endpoint
https://accounts.api.zesty.io/v1/roles/{{role_zuid}}/granulars
Authentication Header
Bearer YOUR_APP_SID
Request Body
[
{
"resourceZUID": "{{item_zuid}}",
"name": "",
"create": true,
"read": true,
"update": true,
"delete": false
}
]