alex-astronomer opened a new issue #18714:
URL: https://github.com/apache/airflow/issues/18714


   ### Description
   
   I'd like to be able to delete a permission from a role using the stable REST 
API.  Right now, when using the `PATCH` verb on the `/roles/{role_name}` 
endpoint, the actions and resources combo that gets added through the body is 
merged into the database, making it possible to add permissions but not delete 
them from what I can see.
   
   I'd like to have the option to delete a permission from a role, which I 
don't believe is currently possible using `PATCH`.
   
   ### Use case/motivation
   
   I want to be able to better modify Roles using the API.  Maybe as part of 
CI/CD I can set up the roles to my liking by using a script which calls the 
API, and can change roles.  Having more control over the Roles through the API 
would be a good feature for users of Airflow and useful specifically for my 
use-case involving the Astronomer platform.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to