---
title: "Edit a user"
method: PUT
path: "/api/v1beta1/users/{username}"
tags: ["users"]
---

# Edit a user

`PUT /api/v1beta1/users/{username}`

## Request body

- UserEdit
  - `enabled` boolean — If false, the user is not able to authenticate

## Response `200`

Updated user details

- User
  - `username` string, required
  - `enabled` boolean — If false, the user is not able to authenticate

## Other responses

- `401` — Authentication failed
- `404` — A user with the given username doesn't exist

---

[API](https://skmtc.net/enseadaio/apis/enseada.md) · [All operations](https://skmtc.net/enseadaio/apis/enseada/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/enseadaio/enseada/versions/e8c51f6a5e52/schema)
