---
title: "修改密码"
method: PUT
path: "/user/password"
tags: ["用户管理"]
---

# 修改密码

`PUT /user/password`

修改当前用户的登录密码

## Request body

- UserChangePasswordRequest
  - `newPassword` string, required
  - `oldPassword` string, required

## Response `200`

修改成功

- CommonResponse
  - `code` integer
  - `data` unknown
  - `message` string
  - `msg` string

## Other responses

- `400` — 参数错误
- `401` — 用户未登录
- `500` — 修改失败

---

[API](https://skmtc.net/oneclickvirt/apis/oneclickvirt-api.md) · [All operations](https://skmtc.net/oneclickvirt/apis/oneclickvirt-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneclickvirt/oneclickvirt-api/versions/1f98232296de/schema)
