---
title: "Update a user"
method: PATCH
path: "/v3/users/{userId}"
tags: ["organization-users"]
---

# Update a user

`PATCH /v3/users/{userId}`

Update details about an existing user.

## Path parameters

- `userId` string, required — BILL-generated ID of the user. The value begins with `006`.

## Headers

- `sessionId` string, nullable — API session ID generated with `/v3/login`
- `devKey` string, nullable — Developer key generated with your BILL developer account

## Request body

- OrganizationUserUpdateRequestDto — Update a user (last name updated)
  - `firstName` string — User first name
  - `lastName` string — User last name
  - `roleId` string — BILL-generated ID of the user role. The value begins with `0po`. If you do not set `roleId`, the default `ADMINISTRATOR` user role is assigned to the created user. You can get the list of available user roles with `GET /v3/roles`.

## Response `200`

Update a user response

- OrganizationUserResponseDto — Users response.
  - `id` string — BILL-generated ID of the user. The value begins with `006`.
  - `archived` boolean — Set as `true` if the user is archived
  - `firstName` string — User first name
  - `lastName` string — User last name
  - `email` string — User email address
  - `role` object — User role information
    - `id` string — BILL-generated ID of the user role. The value begins with `0po`.
    - `type` 'ADMINISTRATOR' | 'CLERK' | 'APPROVER' | 'ACCOUNTANT' | 'CUSTOM' | 'PAYER' | 'PARTNER' | 'AUDITOR' | 'NO_ACCESS' | 'MEMBER' | 'MEMBER_PLUS' | 'INTERNAL' | 'PURCHASE_REQUESTER' | 'CONSOLE_CUSTOM' | 'RECEIVER' | 'PROCUREMENT_USER' | 'UNDEFINED' — User role type.
    - `description` string — User role description
  - `createdTime` string, date-time — Created date and time
  - `updatedTime` string, date-time — Updated date and time

## Other responses

- `4XX` — List of errors.
- `5XX` — List of errors.

---

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