---
title: "UpdateUser"
method: PATCH
path: "/api/admin/users/{user_id}"
tags: ["Admin"]
---

# UpdateUser

`PATCH /api/admin/users/{user_id}`

## Path parameters

- `user_id` string, uuid, required

## Request body

- AdminUserUpdate
  - `is_active` boolean
  - `is_superuser` boolean
  - `is_verified` boolean
  - `name` string, nullable
  - `phone` string, nullable
  - `username` string, nullable

## Response `200`

Request fulfilled, document follows

- AdminUserDetail
  - `createdAt` string, date-time, required
  - `email` string, required
  - `hasPassword` boolean
  - `id` string, uuid, required
  - `isActive` boolean
  - `isSuperuser` boolean
  - `isTwoFactorEnabled` boolean
  - `isVerified` boolean
  - `joinedAt` string, date, nullable
  - `loginCount` integer
  - `name` string, nullable
  - `oauthProviders` string[]
  - `phone` string, nullable
  - `roles` string[]
  - `teams` string[]
  - `updatedAt` string, date-time, required
  - `username` string, nullable
  - `verifiedAt` string, date, nullable

## Other responses

- `400` — Bad request syntax or unsupported method

## Changes

- **2026-01-08** `1fd74fd1e951` — 8 breaking, 6 warning, 4 info
  - the `roles/items/` response's property type/format changed from `object`/`` to `string`/`` for status `200`
  - the `teams/items/` response's property type/format changed from `object`/`` to `string`/`` for status `200`
  - removed the required property `roles/items/assignedAt` from the response with the `200` status
  - removed the required property `roles/items/roleId` from the response with the `200` status
  - …14 more

[Change history](https://skmtc.dev/litestar-org/apis/litestar-fullstack-template/changes/api/admin/users/:user_id/patch.md)

---

[API](https://skmtc.dev/litestar-org/apis/litestar-fullstack-template.md) · [All operations](https://skmtc.dev/litestar-org/apis/litestar-fullstack-template/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/litestar-org/litestar-fullstack-template/revisions/1fd74fd1e951/schema)
