User changing own password

Application Name: Platform Version Number: 2.2


Allowing a user to change their own password with the following:

Header: Authorization Bearer xxxxxxxxxxxxxxx POST: /openmrs/ws/rest/v1/user/{{uuid}} JSON Body: { “password”: “zzzzzzzzz” }

The API is returning 200 OK but the password is not being changed, is there any possible way for a user to changes their password via he api ?

Thanks in advance for your assistance

Always good when you answer your own question by reading the documentation.

After authenticating you can change your own password, by POST …/openmrs/ws/rest/v1/password with oldPassword and newPassword in the request body.

Link here:

Thanks @builttoroam for sharing the solution to your own question. :slight_smile: