Describe the bug
According to the documentation, the PATCH team/:id/members/:user endpoint should accept both the user ID and username for the :user pathname parameter 1. However, when called with the username, the endpoint will return 401 (Unauthorized) with the error message telling that the current user has no permissions to edit the team, despite being a literal owner of the project.
Steps to reproduce
- Send a
PATCH request to team/:id/members/:user with the username as a :user pathname parameter.
Expected behavior
The response succeeds and the member gets changed, just like it does when the user ID used instead.
Additional context
N/A
Describe the bug
According to the documentation, the
PATCH team/:id/members/:userendpoint should accept both the user ID and username for the:userpathname parameter 1. However, when called with the username, the endpoint will return 401 (Unauthorized) with the error message telling that the current user has no permissions to edit the team, despite being a literal owner of the project.Steps to reproduce
PATCHrequest toteam/:id/members/:userwith the username as a:userpathname parameter.Expected behavior
The response succeeds and the member gets changed, just like it does when the user ID used instead.
Additional context
N/A
Footnotes
https://docs.modrinth.com/#tag/teams/operation/modifyTeamMember ↩