---
title: "Update a User"
method: PATCH
path: "/v1/users/{id}"
tags: ["Users API"]
---

# Update a User

`PATCH /v1/users/{id}`

Use this endpoint to update a user's information, such as name, email, or group assignments.

## Path parameters

- `id` string, required

## Request body

- UserUpdateInput — Information used to update a user's information.
  - `email` string, required — User's email address.
  - `firstName` string, required — User's first name.
  - `groups` string[] — Array of user role groups IDs. Role groups IDs can be retrieved through the List Groups endpoint.
  - `lastName` string, required — User's last name.

## Response `200`

Indicates that the resource was successfully updated and the operation was completed as expected.

- UserUpdateInput — Information used to update a user's information.
  - `email` string, required — User's email address.
  - `firstName` string, required — User's first name.
  - `groups` string[] — Array of user role groups IDs. Role groups IDs can be retrieved through the List Groups endpoint.
  - `lastName` string, required — User's last name.

## Other responses

- `400`
- `404`
- `500`

---

[API](https://skmtc.net/lerian/apis/identity-plugin.md) · [All operations](https://skmtc.net/lerian/apis/identity-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lerian/identity-plugin/versions/25daba385532/schema)
