This endpoint is used to change the password of a user.
None
{
"password": "string",
"newPassword": "string"
}
- 'cookie': 'token=...' (Must be valid)
{
"success": true,
"message": "Password changed successfully"
}
Example:
Code | Description |
---|---|
200 | Success |
400 | Bad Request. |
401 | Unauthorized. |
429 | Too Many Requests |
500 | Internal Server Error. |
None