Skip to content

Change password of current user

patch/api/user/password
Change user password for the current logged-in user.

Request

Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.Example: Authorization: Bearer <token>

Body application/json

passwordstring
required
The password of the current logged-in user.
newPasswordstring
required
The new password.
newPasswordConfirmstring
required
The confirm password.

Response

Schema: application/json
codestring
dataundefined
messagestring

Body application/json

json
// SUCCESS

{
  "code": "0",
  "message": "Ok"
}
// SUCCESS

{
  "code": "0",
  "message": "Ok"
}
json
// USER_UPDATE_FAILED

{
  "code": "106",
  "message": "User profile update failed"
}
// USER_UPDATE_FAILED

{
  "code": "106",
  "message": "User profile update failed"
}