---
title: "Update User"
method: PUT
path: "/users"
tags: ["/users"]
---

# Update User

`PUT /users`

Modify a given `User`.

Fields not included in the request body will not be modified.

## Request body

- TenantNewUserInfo — The schema used for creating new users or updating existing users. Need to keep in sync with `frontend/src/types/admin.ts`.
  - `email` string, required — The email of the user
  - `is_tenant_admin` boolean — Flag indicating if the user is a tenant admin
  - `roles` UserRolesEnum[] — The user level roles of the user.

## Response `200`

Successful Response

- EmptyResponse

## Other responses

- `422` — Validation Error

## Changes

- **2025-05-08** `17bdb8a33fb4` — 1 warning, 7 info
  - removed the request property `per_agent_roles`
  - added the new `CONTEXTUAL_EXTERNAL_STAFF_USER` enum value to the request property `roles/items/`
  - added the new `CONTEXTUAL_INTERNAL_STAFF_USER` enum value to the request property `roles/items/`
  - added the new `CONTEXTUAL_STAFF_USER` enum value to the request property `roles/items/`
  - …4 more
- **2025-02-08** `d79ccb778953` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/contextualai/apis/endpoints/changes/users/put.md)

---

[API](https://skmtc.dev/contextualai/apis/endpoints.md) · [All operations](https://skmtc.dev/contextualai/apis/endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contextualai/endpoints/revisions/17bdb8a33fb4/schema)
