Run in Apidog
Last modified: 2025-04-08 11:33:37
This endpoint allows users to update their password. To use this endpoint, you must be logged in and provide your current password for verification, along with the new password. Upon a successful request, a new access token will be generated and returned.
curl --location --request PATCH 'http://82.180.154.188:4352/auth/updatepassword' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"currentPassword": "<Your Current Password>",
"password": "<Your new Password>"
}'
Response Response Example
{
"status" : "success" ,
"accessToken" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mbyI6eyJpZCI6IjY3YTkxMzc4M2QzOWYyYzgwMjliYjE4ZiIsImZ1bGxOYW1lIjp7ImZpcnN0TmFtZSI6Im1hamQiLCJsYXN0TmFtZSI6IndhaG9vYiIsIl9pZCI6IjY3YTkxMzc4M2QzOWYyYzgwMjliYjE5MCJ9LCJyb2xlIjoiVVNFUiJ9LCJpYXQiOjE3MzkxMzY0NDcsImV4cCI6MTczOTEzODI0N30.mRlTqBZSCP9V_0LPyNGUsJp6SAuuZmzyQ0AMXunLxY4"
}
Request Body Params application/json
Responses application/json Generate Code Modified at 2025-04-08 11:33:37