Skip to main content
POST
/
auth
/
change-password
Change password (authenticated)
curl --request POST \
  --url http://localhost:3000/auth/change-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "currentPassword": "<string>",
  "newPassword": "<string>"
}
'
{
  "statusCode": 123,
  "message": "OK",
  "data": {
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
currentPassword
string
required
Minimum string length: 6
newPassword
string
required
Required string length: 8 - 128

Response

Default Response

statusCode
number
message
string
default:OK
data
object