---
title: "Update user details"
method: PATCH
path: "/users/details"
tags: ["UsersDetails"]
---

# Update user details

`PATCH /users/details`

## Request

- Base URL: `https://api.xfa.tech`
- URL: `https://api.xfa.tech/users/details`
- Auth: HTTP bearer

Update user details. Authorization depends on what fields are being updated:
- Language, FirstName, LastName: Only the user themselves can update (email must match)
- Groups: Only organization admins and super admins can update (organizationId required for org admins)

## Query parameters

- `user` string, required
- `organizationId` string

## Request body

- UserDetails
  - `firstName` string
  - `lastName` string
  - `language` string
  - `groups` string[]

## Response `204`

User details updated successfully

## Other responses

- `400`: Bad request (missing required parameters or validation error)
- `403`: Forbidden (insufficient permissions)

---

[API](https://skmtc.dev/xfa/apis/xfa-api.md) · [All operations](https://skmtc.dev/xfa/apis/xfa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xfa/apis/xfa-api/revisions/1a1be0e8972b?raw)
