---
title: "Update a user"
method: PATCH
path: "/projects/{projectId}/customers/{customerId}/users/{userId}"
tags: ["Users"]
---

# Update a user

`PATCH /projects/{projectId}/customers/{customerId}/users/{userId}`

## Path parameters

- `projectId` string, required
- `customerId` string, required
- `userId` string, uuid, required

## Request body

- object
  - `firstName` string — User's first name
  - `lastName` string — User's last name
  - `enabled` boolean — Flag indicating if the user account is active
  - `password` string — New password for the user

## Response `200`

User updated successfully

- User
  - `id` string, uuid — Unique identifier for the user
  - `email` string, email, required — User's email address
  - `firstName` string, required — User's first name
  - `lastName` string, required — User's last name
  - `emailVerified` boolean — Flag indicating whether the user's email address has been verified
  - `enabled` boolean, required — Flag indicating if the user account is active
  - `createdAt` string, date-time — Timestamp when the user was created

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal server error
- `503` — External service unavailable

---

[API](https://skmtc.dev/corti/apis/admin-api.md) · [All operations](https://skmtc.dev/corti/apis/admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corti/admin-api/revisions/5d1895a1b3fc/schema)
