DELETE /api/roles//permissions/
Removes a permission from a role. All users with this role will lose access to the removed permission.Authentication
This endpoint requires authentication. Include a valid JWT token in the Authorization header.Path Parameters
The unique identifier of the role from which the permission will be removed
The unique identifier of the permission to remove from the role
Response
This endpoint returns204 No Content on success with an empty response body.
Error Responses
- 404 Not Found: Role or permission with the specified ID does not exist
- 500 Internal Server Error: Unexpected server error
Example Request
Example Success Response
Example Error Response
Usage Notes
- Attempting to remove a permission that is not assigned to the role will return a 404 error
- Users with this role will immediately lose access to the removed permission
- This action is logged in the audit trail with action type
REMOVER_PERMISO - Consider the impact on users before removing critical permissions
- If the permission doesn’t exist in the system, a 404 error will be returned