---
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', required — Type representing a supported language.
  - `timezone` string, required — Represents a timezone as an IANA timezone string.

## Response `204`

User updated successfully

---

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