General Information
...
Service | API | Method |
---|---|---|
urac | /resetPassword | POST |
Workflow: %Link to Architecture Page% Reset Password Flow
Input
...
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
token | Query | YES | String | N/A | Generated by Urac and email to user after forgot password request is made. |
password | Body | YES | String | N/A |
confirmation | Body | YES | String | N/A | same value as password |
...
Output
...
Valid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": ... } |
...
Invalid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result":false, "errors":{ "codes":[408], "details":[ { "code":408, "message":"The password and its confirmation do not match" } ] } } |
Error Codes
Code | Description |
---|---|
406 | Invalid or token has expired. |
407 | Problem validating Request. Please try again. |
408 | The password and its confirmation do not match |
Example (CURL)
...
Request
Code Block | ||||
---|---|---|---|---|
| ||||
> CURL -X POST http://127.0.0.1:4000/resetPassword?token=abcdef -d 'password=johnpassword&confirmation=johnpassword' |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": true } |
...