---
title: "Update user"
method: PATCH
path: "/iam/v1/users/{id}"
tags: ["Users"]
---

# Update user

`PATCH /iam/v1/users/{id}`

Updates user information, including name, job function, phone, language, and role.

## Path parameters

- `id` string, required

## Request body

- UpdateUserRequest — Fields allowed when updating an existing user.
  - `firstName` string — The user's first name.
  - `lastName` string — The user's last name.
  - `jobTitle` 'Data Engineer / Data Analysts' | 'Executive Team' | 'Finance / Accounting' | 'Founder' | 'Legal / Purchasing' | 'Management' | 'Sales / Marketing' | 'Software / Ops Engineer' — The user's job function.
  - `jobFunction` 'Data Engineer / Data Analysts' | 'Executive Team' | 'Finance / Accounting' | 'Founder' | 'Legal / Purchasing' | 'Management' | 'Sales / Marketing' | 'Software / Ops Engineer' — Deprecated: use 'jobTitle' instead. If both are provided, 'jobTitle' takes precedence.
  - `phone` string — The user's country code (e.g., +44).
  - `phoneExtension` string — The user's phone extension (8-15 digits).
  - `language` 'en' | 'ja' — The user's preferred language.
  - `roleId` string — The ID of the role to assign to the user.

## Response `200`

OK - User updated successfully.

- UpdateUserResponse — Response of a user update operation.
  - `message` string — Success message
  - `user` UpdatedUserBody — The updated user record.
    - `id` string — The unique ID of the user.
    - `displayName` string — The user's display name.
    - `firstName` string — The user's first name.
    - `lastName` string — The user's last name.
    - `email` string — The user's email address.
    - `jobTitle` 'Data Engineer / Data Analysts' | 'Executive Team' | 'Finance / Accounting' | 'Founder' | 'Legal / Purchasing' | 'Management' | 'Sales / Marketing' | 'Software / Ops Engineer' — The user's job function.
    - `phone` string — The user's country code (e.g., +44).
    - `phoneExtension` string — The user's phone extension.
    - `language` 'en' | 'ja' — The user's preferred language.
    - `roleId` string — The ID of the user's role.
    - `organizationId` string — The ID of the user's organization.

## Other responses

- `400` — Bad Request - The server cannot process the request, often due to a malformed request.
- `401` — Unauthorized - Invalid API key.
- `403` — Forbidden - The client is not authorized to perform the request.
- `500` — Internal Server Error - Something went wrong with the DoiT API server.

---

[API](https://skmtc.dev/doit/apis/doit-cloud-intelligence.md) · [All operations](https://skmtc.dev/doit/apis/doit-cloud-intelligence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doit/doit-cloud-intelligence/revisions/9416402fc119/schema)
