Cannot assign a team/group administrator using the REST API
Describe the problem
It's not possible to grant administration to a group/team using the REST API
Describe the solution you'd like
It does not seem easy to implement, but just logging the problem in an issue to report the problem.
Describe alternatives you've considered
No response
Screenshots
No response
Additional context
No response
@joubu Can you describe the problem please
Using the UI you can "Grant administration" or "Revoke administration" on the following view: http://localhost:8888/teams/GROUP_ID/#users
I have not found a way to do that using the REST API.
This issue seems to be a good fit for newbie contributors. You are welcome to contribute to Weblate! Don't hesitate to ask any questions you would have while implementing this.
You can learn about how to get started in our contributors documentation.
Indeed it is not exposed in the API. Adding that should be pretty easy to the existing API endpoints: https://docs.weblate.org/en/latest/api.html#groups
@nijel hey! I would like to work on this. I'll add a new endpoint to the GroupViewSet in the api. Is there a preference for name of the endpoint?
Sorry for missing your question. See how components endpoint works at GroupViewSet, this should be similar.
Thank you for your report; the issue you have reported has just been fixed.
- In case you see a problem with the fix, please comment on this issue.
- In case you see a similar problem, please open a separate issue.
- If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.