---
title: "Update user"
method: PUT
path: "/api/users/{userId}"
tags: ["Users"]
---

# Update user

`PUT /api/users/{userId}`

Updates an existing user account with new details

## Path parameters

- `userId` string, required

## Request body

- UserCommandDTO — Command Data Transfer Object for creating or updating a user. Used as the request body for user creation/update endpoints.
  - `login` string, required — The login username of the user.
  - `firstName` string, nullable, required — The first name of the user. Can be `null` if not provided.
  - `lastName` string, nullable, required — The last name of the user. Can be `null` if not provided.
  - `email` string, nullable, required — The email address of the user. Can be `null` if not provided.
  - `language` 'fr' | 'en' | 'zh', required — Type representing a supported language.
  - `timezone` string, required — Represents a timezone as an IANA timezone string.

## Response `204`

User updated successfully

## Changes

- **2026-08-27** `08f74b792a13` — 1 info
  - added the new `zh` enum value to the request property `language`

[Change history](https://skmtc.dev/optimistiksas/apis/oibus-api/changes/api/users/:userId/put.md)

---

[API](https://skmtc.dev/optimistiksas/apis/oibus-api.md) · [All operations](https://skmtc.dev/optimistiksas/apis/oibus-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/optimistiksas/oibus-api/revisions/08f74b792a13/schema)
