---
title: "修改密码"
method: POST
path: "/auth/change-password"
tags: ["认证"]
---

# 修改密码

`POST /auth/change-password`

修改当前用户的登录密码。新密码须满足 8–32 位且同时包含字母与数字；成功后所有会话被撤销，需重新登录。

## Request body

- object
  - `new_password` string
  - `old_password` string

## Response `200`

修改成功

- object

## Other responses

- `400` — 请求参数错误

---

[API](https://skmtc.net/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/abce9036def5/schema)
