OpenapiPermission
Add policy to role
Adds a permission policy to a role
POST
Adds a permission policy to a role
roleId*stringRole ID
Format
uuidapplication/json- body
action*stringresource*stringPolicy added successfully
application/json- response
action*stringid*stringFormat
uuidrealmId*stringresource*stringcurl -X POST 'https://example.com/api/permission/roles/497f6eca-6276-4993-bfeb-53cbbbba6f08/policies' \
-H 'Content-Type: application/json' \
-d '{
"action": "string",
"resource": "string"
}'Example Response
{
"action": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"realmId": "string",
"resource": "string"
}