---
title: "Updates an existing user."
method: PUT
path: "/users/{userId}"
tags: ["Users"]
---

# Updates an existing user.

`PUT /users/{userId}`

Updates an existing user.

## Path parameters

- `userId` integer, required

## Request body

- UserDTO
  - `id` integer
  - `firstName` string
  - `lastName` string
  - `login` string
  - `email` string
  - `userGroupName` string
  - `mobilePhone` string
  - `gender` string
  - `timeZoneId` string
  - `positionName` string
  - `phone` string
  - `customFields` CustomFieldDTO[]
    - `type` 'TEXT' | 'DATE' | 'DATE_AND_TIME' | 'NUMBER' | 'CHECKBOX' | 'SELECTION' | 'MULTI_SELECTION'
    - `name` string
    - `key` string
    - `value` object

## Response `default`

Success

---

[API](https://skmtc.dev/xtrf/apis/xtrf-home-portal-api.md) · [All operations](https://skmtc.dev/xtrf/apis/xtrf-home-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xtrf/xtrf-home-portal-api/revisions/0c24935a3319/schema)
