Change password (authenticated)
/v1/auth/change-passwordAuthenticated password change requiring the current_password and a new_password. Guarded by UserJwtGuard and rate-limited to 5 per hour; returns 401 when the current password is wrong. The new password is breach-checked and rejected if it matches any of the last 5 passwords (400), then argon2id-hashed. Existing sessions are not revoked.
Request body
application/json
current_passwordstring Required Current password
new_passwordstring Required New password (8-128 chars, must contain uppercase, lowercase, digit, and special character)
Responses
application/json
data *MessageResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X POST "https://auth.canopy-io.com/v1/auth/change-password" \ -H "Content-Type: application/json" \ -d '{ "current_password": "string", "new_password": "string" }'
{ "data": { "message": "string" } }
Tell us how we can improve this guide.