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

# PUT /v1/users/{userID}

`PUT /v1/users/{userID}`

UpdateUser 更新用户信息

## Path parameters

- `userID` string, required

## Request body

- V1UpdateUserRequest — UpdateUserRequest 表示更新用户请求
  - `userID` string — userID 表示用户 ID
  - `username` string — username 表示可选的用户名称
  - `nickname` string — nickname 表示可选的用户昵称
  - `email` string — email 表示可选的用户电子邮箱
  - `phone` string — phone 表示可选的用户手机号

## Response `200`

OK

- V1UpdateUserResponse — UpdateUserResponse 表示更新用户响应

## Changes

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

- **2024-04-03** `ae599f31f558` — 1 breaking, 1 warning, 3 info
  - removed the media type `application/json` for the response with the status `200`
  - removed the request property `userID`
  - api operation id `MiniBlog_UpdateUser` removed and replaced with `UserCenter_UpdateUser`
  - api tag `UserCenter` added
  - …1 more

[Change history](https://skmtc.dev/onexstack/apis/miniblog-api/changes/v1/users/:userID/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)
