lev
lev3mo ago

User update via API v2 causes 405 error.

I am using v3.2.3 self-hosted. I try to use the API and started with updating the usirinfo. According to the https://zitadel.com/docs/apis/resources/user_service_v2/user-service-update-user , it should be PATCH /v2/users/:userId I make a PATCH request http://localhost:8080/v2/users/319291506421202948 with the following body {"username":"zitadel-admin@zitadel.localhost","human":{"profile":{"givenName":"ZITADEL","familyName":"Admin","nickName":"","displayName":"ZITADEL Admin 1"}}} And always receive 405 Method Not Allowed. What am I doing wrong? I also tried PUT and POST, but it still says 405 Thanks in advance.
ZITADEL Docs
Partially update an existing user.
5 Replies
avondas
avondas3mo ago
I have the same issue in v2.71.10, although the Bearer token I pass along belongs to an IAM_Owner and to be safe I also added IAM_User_Manager Update! this is also still happening for me in v3.3.0
lev
levOP3mo ago
@avondas , I upgraded to 3.3.0 and yes, it happens there as well
Rajat
Rajat3mo ago
hey @lev you're just trying to use an endpoint that's documented but not yet implemented. you can continue with the working sub-endpoints (for workarounds) like /v2/users/human/:id via PUT until full PATCH /v2/users/:id is released there is an ongoing issue a a PR was raised today
lev
levOP3mo ago
I did exactly that
Rajat
Rajat3mo ago
hey @lev you can keep an eye and once it gets out, it will clarify the confusion.

Did you find this page helpful?