---
title: "Update User"
description: "Updates the details and permissions of a user."
---

`PATCH /api/users/:id`

## Request Body

```json
{
  "firstName": "Jane",
  "lastName": "Smith",
  "role": "admin",
  "isActive": true,
  "customerIds": ["11111111-1111-4111-8111-111111111111", "22222222-2222-4222-8222-222222222222"] // Update the list of assigned customers via public IDs
}
```

Notes:

- `customerIds` accepts customer public IDs and legacy numeric IDs.
- Public IDs are the preferred format for new integrations.

## Response

Returns the updated user object. See [Error Codes](/api/error-codes-and-known-pitfalls) for error responses.
