POST /api/auth/change-password
operationId: changePassword
Change the password of the user
Authentication
Signed-in operator session (browser)
Actual native human session; protected management also requires recent successful factor authentication.
Request body
application/json
newPasswordstringrequiredThe new password to set
currentPasswordstringrequiredThe current password is required
revokeOtherSessionsfalseOnly false or omission is accepted; the database revokes all sessions after the credential lock.
Responses
200 Password successfully changed
tokenstring | nullNew session token if other sessions were revoked
userobjectrequiredidstringrequiredThe unique identifier of the user
emailstring (email)requiredThe email address of the user
namestringrequiredThe name of the user
imagestring (uri) | nullThe profile image URL of the user
emailVerifiedbooleanrequiredWhether the email has been verified
createdAtstring (date-time)requiredWhen the user was created
updatedAtstring (date-time)requiredWhen the user was last updated
400 Bad Request. Usually due to missing parameters, or invalid parameters.
messagestringrequired
401 Unauthorized. Due to missing or invalid authentication.
messagestringrequired
403 Forbidden. You do not have permission to access this resource or to perform this action.
messagestring
404 Not Found. The requested resource was not found.
messagestring
429 Too Many Requests. You have exceeded the rate limit. Try again later.
messagestring
500 Internal Server Error. This is a problem with the server that you cannot fix.
messagestring