Change Password

POST /api/v1/users/me/password

Allows the currently authenticated user to change their password.

application/json

Body Required

Current and new password

  • current_password string Required
  • new_password string Required

    Minimum length is 8.

Responses

  • 200 application/json

    Password changed successfully

    Hide response attribute Show response attribute object
    • * string Additional properties
  • 400 application/json

    Invalid request data or password change failed (e.g., wrong current password)

    Hide response attribute Show response attribute object
    • * string Additional properties
  • 401 application/json

    Unauthorized (JWT invalid/missing or User ID not found)

    Hide response attribute Show response attribute object
    • * string Additional properties
POST /api/v1/users/me/password
curl \
 --request POST 'http://api.example.com/api/v1/users/me/password' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"current_password":"string","new_password":"string"}'
Request examples
{
  "current_password": "string",
  "new_password": "string"
}
Response examples (200)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}
Response examples (400)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}
Response examples (401)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}