CHANGE PASSWORD
PATCH
/users/change-passwordRequest
Header Params
X-Tonic-Env
string
required
Example:
development
Body Params application/json
newPassword
string
required
oldPassword
string
required
Example
{
"newPassword": "Password1#",
"oldPassword": "#Password1#"
}
Request samples
Responses
422 CHANGE PASSWORD(422)
200 CHANGE PASSWORD(200)
403 CHANGE PASSWORD(403)
422 CHANGE PASSWORD
HTTP Code: 422
Content Type : JSONapplication/json
Data Schema
success
boolean
required
message
string
required
meta
object
required
settings
null
required
errors
array [object {3}]
required
message
string
optional
field
string
optional
location
string
optional
Example422 CHANGE PASSWORD
{
"success": false,
"message": "validation errors",
"meta": {
"settings": null
},
"errors": [
{
"message": "old and new passwords cannot be same",
"field": "oldPassword",
"location": "body"
}
]
}
Last modified: 10 days ago