Which REST API to use when user want to change its password PUT /Users or PUT /reset-password

I want to make a rest call to my Keycloak server.
I see using below 2 APIs we can change user’s password

  1. PUT /admin/realms/{realm}/users/{id}/reset-password
  2. PUT /admin/realms/{realm}/users/{id}

Which is the correct/appropriate API i can call to change user password?

Both are ADMIN endpoints, they are NOT for regular user usage!
Use the required actions to let the user update its own password. You can call them directly, see e.g. my blog post: