Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

catissuecoreopenspecimen/rest/ng/users/{userId}/password?token={token}

...

Parameter
Details
userIdIdentifier of User user e.g. 22, 12 etc
tokenApplication generated token to set the Passwordpassword
newPasswordPassword that user wants to set


http[s]:<host>:<port>/catissuecoreopenspecimen/rest/ng/users/{userId}/password?token={token}

Use this URL to set password in caTissue openSpecimen application.


Result:

The response of this request will contains the details of the updated password.

Below is the example of the set password:

URLhttp://<host>:<port>/catissuecoreopenspecimen/rest/ng/users/{userId}/password?token={token}
MethodPUT
Requestapplication/json
json{"newPassword" : "Login1234"}

Response

"success"

...

code
Applies to
Status Message
200All resourcesPassword has been updated successfully
400All requestsInvalid parameters, e.g blank New Password new password etc
401All requestsAuthorization failed, User user doesn’t have Authorityauthority
404All requestsUser not found, User user with given details not present in the system
500All requestsInternal server error, Encountered encountered server error while performing operations

...