---
title: "Update user"
method: PUT
path: "/users/{id}"
tags: ["User Management"]
---

# Update user

`PUT /users/{id}`

Update the information of an existing user.

## Path parameters

- `id` string, uuid, required

## Request body

- UserCreate — User of the system
  - `name` string, required
  - `email` string, email, required

## Response `200`

User Updated

- User — User of the system
  - `id` string, uuid, required
  - `name` string, required
  - `email` string, email, required

## Other responses

- `404` — User Not Found
- `409` — Email Already Taken

## Changes

- **2024-10-02** `c9062e3a3c54` — 1 info
  - the endpoint scheme security `jwt` was added to the API
- **2024-10-02** `936529d30a41` — 1 info
  - the endpoint scheme security `jwt` was removed from the API
- **2024-09-18** `041ec1a0e403` — 2 info
  - the endpoint scheme security `jwt` was added to the API
  - the endpoint scheme security `cookieAuth` was removed from the API
- **2024-08-08** `d53276437f78` — 1 info
  - the endpoint scheme security `cookieAuth` was added to the API
- **2024-06-07** `5ea1c0d602b9` — 6 breaking, 4 info
  - added the pattern `^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$` to the `path` request parameter `id`
  - the request property `email` became required
  - the request property `name` became required
  - added the pattern `(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])` to the request property `email`
  - …6 more

[Full history](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api/changes/users/:id/put.md)

---

[API](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api.md) · [All operations](https://skmtc.dev/pai-os/apis/personal-artificial-intelligence-operating-system-pai-os-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pai-os/personal-artificial-intelligence-operating-system-pai-os-api/revisions/3c144b366e19/schema)
