---
title: "Update a user"
method: PATCH
path: "/v0/users/{user}"
tags: ["users"]
---

# Update a user

`PATCH /v0/users/{user}`

Update a user. Only the authenticated user themselves and server admins have access to this endpoint. Some fields can only be updated by an admin. To manage users within your organization, use the organization members endpoints.

## Path parameters

- `user` string, required

## Request body

- JsonUpdateUser
  - `admin` boolean, nullable — Update whether the user is an admin. Must be an admin to update this field.
  - `email` string
  - `locked` boolean, nullable — Update whether the user is locked. Must be an admin to update this field.
  - `name` string
  - `slug` string

## Response `200`

successful operation

- JsonUser
  - `admin` boolean, required
  - `created` string, date-time
  - `email` string, required
  - `locked` boolean, required
  - `name` string, required
  - `slug` string, required
  - `uuid` string, uuid, required

## Other responses

- `4XX` — Error
- `5XX` — Error

---

[API](https://skmtc.net/bencherdev/apis/bencher-api.md) · [All operations](https://skmtc.net/bencherdev/apis/bencher-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bencherdev/bencher-api/revisions/84086e99e6cd/schema)
