Change the caller's password
Any signed in user. Replaces the caller’s password after verifying the current one. A new password under eight characters is refused, and every other session keeps the token it already holds.
POST
/api/v1/auth/change-passwordAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Request body
requiredapplication/jsoncurrent_passwordstringrequiredmin length 1
new_passwordstringrequiredmin length 8
Responses
200
Password changed
okbooleanrequired400
Current password is incorrect, or the current or new password is missing or too short
detailstringrequired401
Not authenticated
detailstringrequired