---
title: "Update user"
url: https://hexelstudio.com/docs/api/ciam-core/users/update
---

# Update user

**PATCH** `/users/{user_id}`

## Path parameters

- `user_id: string`

  User ID

## Headers

- `Authorization: string`

  `Bearer <token>`.

## Body parameters

- `body: object`

  Fields to update

## Returns

`200` OK (`map[string]`)

## Errors

- `400` Bad Request
- `500` Internal Server Error

## Example

```bash
curl --request PATCH \
  --url 'https://api.hexelstudio.com/v1/users/{user_id}' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{}'
```

### Response (200)

```json
{
  "key": "string"
}
```

### Response (400)

```json
{
  "key": "string"
}
```

### Response (500)

```json
{
  "key": "string"
}
```
