Internal User management

Change Password

Change the calling user's own password.

Only callable with the dashboard session issued by a username/password login; SSO sessions and virtual keys are rejected with 403. Requires the current password. The new password must differ from the current one and satisfy the configured password policy (general_settings.password_policy_*: minimum length, character classes, and, when enabled, breached-password screening via haveibeenpwned.com). A successful change lifts any pending forced password reset (password_reset_required) on the account.

Parameters:

  • current_password: str - The user's current password.
  • new_password: str - The password to change to.
post/user/password/change

Request

  • Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
  • URL: https://docs.litellm.com.cn/user/password/change
  • Auth: API key in header x-litellm-api-key

Request body

current_passwordstring required
new_passwordstring required

Response

Successful Response

user_idstring required
messagestring required

Changes

No recorded changes to this operation across all 1 revision of this API.