Change Password

This service will change the password based on provided token or username/password. This service will use token if both token and username are both provided.

change password request

PUT HTTPS /v1/changePassword
Name Required Values Description
AUTHORIZATION Y Bearer {token} Used to attach access token for API call

Body

Name Required Values Description
CONTENT-TYPE Y application/json Used to alert the rest service to the presence of a json body

Body Fields

Name Type Constrain Description
username String N/A username
token String N/A token for change password
currentPassword String N/A current password
newPassword String 4 - 20 characters new password

Request JSON

{
    "token" : "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6IjJWdVIxNTA3MDcxNjQzNDU3OTMiLCJpYXQiOjE0MzYzMTI3ODUsImV4cCI6MTQzNjMxNjM4NX0bnhGOkgQV8j4fXVTurQbU_GRI5rLz2HZuLfKkT9zHBU", 
    "newPassword" : "password"
}

Request JSON

{
    "username" : "pauloutest123",
    "currentPassword" : "password",
    "newPassword" : "passwordtest"
}

Response Status Code

Code Description Body
200 OK no body

Response Error Code

HTTP Status Code Error Code Description Body
400 1000 Missing required params NFL Customized Error Respose Body
401 2000 The change password token is invalid NFL Customized Error Respose Body
401 7000 Invalid resource owner Error Message will indicate the error root cause