Users API
Change password
An user who is logged in in the application can change his own password.
GET/rest/msm/users/changepassword
Query parameters | |
Header | auth-token: value of the authentication token. |
Header/Parameter | tenant |
Body | UserCredentialsModel |
Returns | {"result":"ok"}
|
Required role | none |
Managed errors |
|
Example request
curl 'http://localhost:8080/mwp/rest/msm/users/changepassword' -H 'auth-token:1a2c6caf-b977-479b-9188-cb2750f100ad._hzInX' -H 'tenant:default' POST -d '{"oldPassword" : "a12345678A", "newPassword" : "b12345678B"}' --verbose -H 'Content-Type:application/json'
Example response
{ "result":"ok" }