builttoroam
(James McCutcheon)
1
Application Name: Platform
Version Number: 2.2
Question:
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
builttoroam
(James McCutcheon)
2
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:
https://wiki.openmrs.org/display/docs/REST+Web+Services+API+For+Clients
dkayiwa
(Daniel Kayiwa)
3
Thanks @builttoroam for sharing the solution to your own question. 