---
title: "PUT /v1/users/{userID}/change-password"
method: PUT
path: "/v1/users/{userID}/change-password"
tags: ["MiniBlog"]
---

# PUT /v1/users/{userID}/change-password

`PUT /v1/users/{userID}/change-password`

ChangePassword 修改密码

## Path parameters

- `userID` string, required

## Request body

- V1ChangePasswordRequest — ChangePasswordRequest 表示修改密码请求
  - `userID` string — userID 表示用户 ID
  - `oldPassword` string — oldPassword 表示当前密码
  - `newPassword` string — newPassword 表示准备修改的新密码

## Response `200`

OK

- V1ChangePasswordResponse — ChangePasswordResponse 表示修改密码响应

## Changes

> 5 revisions in range; 1 could not be searched.

- **2024-12-10** `2cd7efbd4c2e` — 1 info
  - endpoint added
- **2024-04-03** `ae599f31f558` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/onexstack/apis/miniblog-api/changes/v1/users/:userID/change-password/put.md)

---

[API](https://skmtc.dev/onexstack/apis/miniblog-api.md) · [All operations](https://skmtc.dev/onexstack/apis/miniblog-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/onexstack/miniblog-api/revisions/260806329592/schema)
