Update Password
Change the current user’s password.
PUT /api/user/passwordRequest Body
{
"currentPassword": "oldpassword123",
"newPassword": "newpassword123"
}| Property | Type | Required | Description |
|---|---|---|---|
currentPassword | string | yes | The current password of the user. |
newPassword | string | yes | The new password for the user. |
Response
{
"data": [],
"status": "OK",
"code": 200,
"timestamp": 1234567890,
"meta": {}
}The passwords are automatically hashed before being stored in the database.