---
title: "PATCH /users/{userId}"
method: PATCH
path: "/users/{userId}"
---

# PATCH /users/{userId}

`PATCH /users/{userId}`

## Path parameters

- `userId` string, required

## Headers

- `Content-Type` string, required

## Request body

- PatchUserId
  - `avatar` string, nullable
  - `name` string, nullable

## Response `200`

200 response

- User
  - `avatar` string, nullable
  - `createdBy` string, nullable, required
  - `createdTime` string, nullable, required
  - `email` string, required
  - `name` string, nullable
  - `updatedBy` string, nullable, required
  - `updatedTime` string, nullable, required
  - `userId` string, required

## Other responses

- `400` — 400 response
- `403` — 403 response
- `404` — 404 response
- `415` — 415 response
- `500` — 500 response

## Changes

- **2021-11-05** `9788e6bfa925` — 6 warning, 5 info
  - removed the request property `metadata`
  - removed the request property `roleIds`
  - removed the optional property `metadata` from the response with the `200` status
  - removed the optional property `profileId` from the response with the `200` status
  - …7 more

[Change history](https://skmtc.dev/lucidtechai/apis/lucidtech-api/changes/users/:userId/patch.md)

---

[API](https://skmtc.dev/lucidtechai/apis/lucidtech-api.md) · [All operations](https://skmtc.dev/lucidtechai/apis/lucidtech-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lucidtechai/lucidtech-api/revisions/9788e6bfa925/schema)
