Skip to main content
PATCH
/
auth
/
change-password
cURL
curl --request PATCH \
  --url http://127.0.0.1:3000/api/auth/change-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "password": "<string>",
  "newPassword": "<string>"
}
'

Authorizations

Authorization
string
header
required

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

Body

application/json
password
string
required

Minimum 8 chars

Minimum string length: 8
newPassword
string
required
Minimum string length: 8

Response

201

Change password successfully

Last modified on December 10, 2025