v4

latestOpenAPI 3.1.1Apache 2.02026-07-31107278570.4 KB
Roles

Remove permission from role

Removes a specific permission from the specified role, revoking that capability from all users assigned to the role. Use this endpoint to restrict role capabilities or remove unnecessary permissions. Provide both the role name and permission name as path parameters. This operation only affects the direct permission assignment and does not impact permissions inherited from base roles. If the permission is inherited through role hierarchy, you may need to modify the base role instead. This is useful for fine-tuning role permissions, implementing least-privilege access controls, or removing deprecated permissions. Returns no content on successful removal.

delete/api/v1/roles/{role_name}/permissions/{permission_name}

Path parameters

role_namestring required

Name of the role

permission_namestring required

Name of the permission to remove

Response

Permission removed from role successfully. No content returned.

{"stackTrail":"paths:/api/v1/roles/{role_name}/permissions/{permission_name}:delete:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}