---
title: "Admin Update User"
method: PATCH
path: "/api/v3/admin/users/{user_id}"
tags: ["admin", "users"]
---

# Admin Update User

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

## Request

- Base URL: `https://api.endless.health` (the document declares no server; this is the origin it was published from)
- URL: `https://api.endless.health/api/v3/admin/users/{user_id}`
- Auth: none declared

## Path parameters

- `user_id` integer, required

## Request body

- AdminUserUpdateSchema
  - `site_id` integer, nullable
  - `organization_id` integer, nullable
  - `is_active` boolean, nullable
  - `is_superuser` boolean, nullable
  - `roles` Roles[], nullable
  - `locale` 'en' | 'es'

## Response `200`

Successful Response

- UserSchema
  - `id` integer, required
  - `email` string, required
  - `first_name` string, nullable
  - `last_name` string, nullable
  - `is_active` boolean, nullable
  - `is_superuser` boolean, nullable
  - `is_staff` boolean, nullable
  - `is_physician` boolean, nullable
  - `is_kit_assembly` boolean, nullable
  - `locale` string, nullable, required
  - `site_id` integer, required
  - `organization_id` integer, nullable
  - `is_authorized` boolean, nullable
  - `roles` string[]
  - `permissions` string[]
  - `date_joined` string, nullable

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/endless/apis/eh-core-v3-api-prod.md) - [All operations](https://skmtc.dev/endless/apis/eh-core-v3-api-prod/llms.txt) - [OpenAPI document](https://skmtc.dev/endless/apis/eh-core-v3-api-prod/revisions/9046a1eb2d0c?raw)
