认证

修改密码

修改当前用户的登录密码。新密码须满足 8–32 位且同时包含字母与数字;开启复杂密码后还需包含大小写与特殊字符。成功后所有会话被撤销,需重新登录。

post/auth/change-password

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/auth/change-password
  • Auth
    API key in header Authorization

Request body

new_passwordstring
old_passwordstring

Response

修改成功

messagestring
successboolean

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 105 revisions of this API.