Set Password

Set or change the account's login password.

  • Accounts WITHOUT a usable password (phone-OTP-only → password_hash NULL, or WeChat-only → "wechat-only" sentinel) set one for the first time and do NOT need current_password. This is what lets a phone-OTP user enable email/phone + password login from Settings.
  • Accounts that already have a password must supply the correct current_password to change it.
post/api/auth/password

Headers

authorizationstring nullable

Request body

new_passwordstring required
current_passwordstring nullable

Response

Successful Response

object required

Changes

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