---
title: "Update user information (including disabled users)"
method: PUT
path: "/v1/users/{id}"
tags: ["Users"]
---

# Update user information (including disabled users)

`PUT /v1/users/{id}`

Update a user by ID，Only status is required

## Path parameters

- `id` integer, required

## Headers

- `Authorization` string, required

## Request body

- UserUpdateUserRequest
  - `email` string
  - `is_admin` integer
  - `name` string
  - `password` string
  - `status` integer

## Response `200`

OK

- ModelUserBaseModel
  - `avatar` string
  - `cluster_admin` integer
  - `email` string
  - `id` integer
  - `is_admin` integer
  - `name` string
  - `phone` integer
  - `sa_name` string
  - `status` integer
  - `username` string

## Changes

- **2020-12-13** `2743e3738539` — 2 info
  - api tag `Users` added
  - api tag `用户` removed
- **2020-11-03** `7380a717b90e` — 1 info
  - endpoint added
- **2020-10-29** `626c0be310f3` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/nocalhost/apis/nocalhost-docs-api/changes/v1/users/:id/put.md)

---

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