Skip to main content

PATCH /utils/me/password

Update own password.

Updates the password for the currently authenticated user after verifying their existing credentials.

Endpoint​

PATCH /utils/me/password

Parameters​

NameTypeDescription
sessionSessionDepThe database session dependency used for persisting the new password hash.
bodyUpdatePasswordThe request body containing the current and new password strings.
current_userCurrentUserThe currently authenticated user object retrieved from the security context.

Request Body​

FieldTypeDescription
current_passwordstringThe user's existing password used for identity verification.
new_passwordstringThe new password to be set for the account, which must differ from the current password.

Response​

StatusDescription
200Password updated successfully Returns Message.
400Returned if the current password is incorrect or if the new password is identical to the current one Returns null.