RESET PASSWORD
POST
/auth/reset-passwordRequest
Header Params
X-Tonic-Env
string
required
Example:
development
Body Params application/json
otp
string
required
token
string
required
password
string
required
Example
{
"otp": "8179",
"token": "433ccf537425e1f4064244bb9852b317f46886b163624aebe37e5680a02761f63caaeced7252c43724de070270e9f43a0be4cd81dbd3c91bc7b1fbd7fb38eb08",
"password": "Password1#"
}
Request samples
Responses
422 RESET PASSWORD(422)
400 RESET PASSWORD(400)
200 RESET PASSWORD(200)
422 RESET PASSWORD
HTTP Code: 422
Content Type : JSONapplication/json
Data Schema
success
boolean
required
message
string
required
meta
object
required
settings
object
required
errors
array [object {3}]
required
message
string
required
field
string
required
location
string
required
Example422 RESET PASSWORD
{
"success": false,
"message": "validation errors",
"meta": {
"settings": {}
},
"errors": [
{
"message": "password must contain 8 characters and at least 1 number, 1 uppercase, and 1 lowercase letter",
"field": "password",
"location": "body"
},
{
"message": "provide the token",
"field": "token",
"location": "body"
},
{
"message": "provide the otp",
"field": "otp",
"location": "body"
}
]
}
Last modified: 10 days ago