General Information
...
Service | API | Method |
---|
urac | /changeEmail/validate | GET |
Data Model: %Link to Data Model%Models: Users, Tokens
Workflow: %Link to Architecture Page% Validate Changed Email Flow
Input
...
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|
Body | ...
Generated by Urac and email to user after change email request is made. |
Output
...
Valid Response
Code Block |
---|
language | js |
---|
title | Valid Response Sample |
---|
|
{
"result": true,
"data": {
"..."
}
} |
...
Invalid Response
Code Block |
---|
language | js |
---|
title | Error Response Sample |
---|
|
{
"result":false,
"errors":{
"codes":[400406],
"details":[
{
"code":400406,
"message":"ProblemInvalid withor thetoken providedhas passwordexpired."
}
]
}
} |
Error Codes
400 | Database Error |
---|
406 | Invalid or token has expired. |
407 | Problem validating Request. Please try again. |
Example (CURL)
...
Request
Code Block |
---|
language | bash |
---|
title | Calling YOUR Validate API |
---|
|
> CURL -X POSTGET http://127.0.0.1:4000/...urac/changeEmail/validate?token=abcdef |
Response
Code Block |
---|
language | js |
---|
title | YOUR Validate API response |
---|
|
{
"result": true,
"data": {
"_id": "57063608622c47b5c097d19b",
"..."
}true
} |