1) Change Password :
This API is useful when user wants openspecimen/rest/ng/users/password
Use this API to change the passworduser passwords.
Method | URL |
---|---|
DELETE | catissuecore/rest/ng/users/{userId}/password?type=change |
Request | {"oldPassword":"Login123","newPassword":"Login1234"} |
Response | "success" |
2) Set Password :
This API is useful when user redirect through forgot password link or new user sets the password through email.
Method
URL
The following table lists the attributes that need to be sent in the API request body.
Parameter | Details |
---|---|
userId | User identifier |
oldPassword | Old password of the user. This is not mandatory if a) the super-admin user is invoking this API and b) the super-admin user is not changing his/her own password! |
newPassword | New user password |
http[s]://<host>:<port>/openspecimen/rest/ng/users/password
Use this URL to change the user password
Below is an example of the change password API request/resposne.
Method | URL |
---|---|
Method | PUT |
URL | /openspecimen/rest/ng/users/ |
password | ||||||||||
Content type | application/json | |||||||||
Body |
|
|
| |
Response | " |
true" |
Error Cases :
HTTP Response Code | Description |
---|---|
200 | Password has been updated successfully |
400 |
|
500 | Unknown, unhandled system errors. |