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.
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
PATCH
request toteam/: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