Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 660 Bytes

change-password.md

File metadata and controls

49 lines (33 loc) · 660 Bytes

POST /api/auth/change-password

Description

This endpoint is used to change the password of a user.

Request

Parameters

None

Body

{
  "password": "string",
  "newPassword": "string"
}

Headers

  • 'cookie': 'token=...' (Must be valid)

Response

{
    "success": true,
    "message": "Password changed successfully"
}

Response Codes

Example:

Code Description
200 Success
400 Bad Request.
401 Unauthorized.
429 Too Many Requests
500 Internal Server Error.

Cookies

None