1) Change Password :
This API is useful when user wants to change the password.
Api :
Method | URL |
---|---|
PUT | catissuecore/rest/ng/users/{userId}/password?type=change |
Request | application/json |
json | {"oldPassword":"Login123","newPassword":"Login1234"} |
Response | "success" |
Set Password :
This API is useful when user redirects through forgot password link or new user sets the password through email.
Api :
Method | URL |
---|---|
PUT | catissuecore/rest/ng/users/{userId}/password?token={token} |
Request | application/json |
json | {"newPassword":"Login1234"} |
Response | "success" |
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | |
201 | All POST/PUT requests | Resource created/updated successfully |
400 | All requests | Invalid parameters, this will also includes application specific error messages |
401 | All requests | Authorization failed |
404 | All requests | Resource not found, also includes specified resource id/name/title |
500 | All requests | Internal server error |