Nest Authbeta

POST /auth/change-password

Change Password

Change Password

POST/auth/change-password

Request body

NestAuthChangePasswordRequestDto

FieldTypeRequiredDescription
currentPasswordstringrequiredCurrent password
Example: DemoOwner1!
newPasswordstringrequiredNew password
Example: DemoOwner1!New

Examples

Example
{
  "currentPassword": "DemoOwner1!",
  "newPassword": "DemoOwner1!New"
}

Responses

200

MessageResponseDto

FieldTypeRequiredDescription
messagestringrequiredResponse message

Example response

{
  "message": "string"
}

Try it

curl -X POST 'https://api.example.com/auth/change-password' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -d '{"currentPassword":"DemoOwner1!","newPassword":"DemoOwner1!New"}'

On this page