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

# PUT /v1/users/{userID}

`PUT /v1/users/{userID}`

更新用户信息

## Path parameters

- `userID` string, required

## Request body

- V1UpdateUserRequest — UpdateUserRequest 表示更新用户请求
  - `userID` string
  - `username` string
  - `nickname` string
  - `email` string
  - `phone` string

## Response `200`

OK

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

## Changes

- **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/2cd7efbd4c2e/schema)
