---
title: "Users:Patch User"
method: PATCH
path: "/auth/users/{id}"
tags: ["users"]
---

# Users:Patch User

`PATCH /auth/users/{id}`

## Request

- Base URL: `https://dev.whispa.net` (the document declares no server; this is the origin it was published from)
- URL: `https://dev.whispa.net/auth/users/{id}`
- Auth: one of:
  - OAuth 2
    - Password
    - Token URL: `auth/bearer/login`
  - API key in cookie `access_token`

## Path parameters

- `id` string, required

## Request body

- UserUpdate
  - `password` string, nullable
  - `email` string, email, nullable
  - `is_active` boolean, nullable
  - `is_superuser` boolean, nullable
  - `is_verified` boolean, nullable
  - `first_name` string, nullable
  - `last_name` string, nullable

## Response `200`

Successful Response

- UserRead
  - `id` string, uuid, required
  - `email` string, email, required
  - `is_active` boolean
  - `is_superuser` boolean
  - `is_verified` boolean
  - `role` 'admin' | 'team_lead' | 'user', required
  - `team_id` string, uuid, nullable
  - `first_name` string, required
  - `last_name` string, required

## Other responses

- `400`: Bad Request
- `401`: Missing token or inactive user.
- `403`: Not a superuser.
- `404`: The user does not exist.
- `422`: Validation Error

---

[API](https://skmtc.dev/whispa/apis/whispa-api.md) - [All operations](https://skmtc.dev/whispa/apis/whispa-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whispa/apis/whispa-api/revisions/12c2e4aca43c?raw)
