Favicon

You are here: Home > API Reference > Users > Profile change password

Profile change password

Profile change password

POST
/v1/users/profile/change-password
Copy to clipboard

Profile change password

Profile change password

Request

Add parameter in header authorization
Example: Authorization: Bearer <token>
Body Params application/json
oldPassword string required
Password
≤ 128 characters · ≥ 8 characters
newPassword string required
Password
≤ 128 characters · ≥ 8 characters
{
    "oldPassword": "string",
    "newPassword": "string"
}

Responses

200 Response application/json
status boolean optional
data object optional
passwordChanged string optional
OK
{
    "status": true,
    "data": {
        "passwordChanged": "OK"
    }
}
401 Response application/json
status boolean optional
false
error object optional
code number optional
4004
message string optional
Invalid Token
{
    "status": false,
    "error": {
        "code": 4002,
        "message": "No auth token"
    }
}