Skip to main content

Update Password

Update user password

Password update

Intro

You will need to be logged in to Get change link. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel dolor lacinia, pellentesque ligula vitae, ultrices dui. In tincidunt velit sit amet neque aliquet, a vulputate purus lobortis.

Request Headers

Origin: <CLIENT_APP_URL>
client_id: <API_CLIENT_ID>
Authorization: <BEARER_TOKEN>

Request body

{
"currentPassword":"String",
"password":"String",
"passwordConfirm":"String"
}

Body Validation

  1. currentPassword - User current password
  1. password - New user password
  1. passwordConfirm - Confirm user password

Request

PATCH
http://localhost:5501/api/v1/auth/updatepassword

Response

{
"status": "String",
"message": "String"
"userid": "String"
}

Response Validation

  1. status - request status
  1. message - response message
  1. userid - user ID

Example

Headers

Origin: http://localhost:3000
client_id: pSpisBrYn4yIP1vGILcdZ
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Body

{
"currentPassword":"12345678",
"password":"12345678",
"passwordConfirm":"12345678"
}

Response

{
"status": "verify",
"message": "Account is not verified, please verify to continue",
"userid": "629ad74878103d4e4a74e9e6"
}