---
title: "Update an user"
method: PUT
path: "/users/{userId}"
tags: ["Users"]
---

# Update an user

`PUT /users/{userId}`

## Request

- Base URL: `https://connect.clever.gy`
- URL: `https://connect.clever.gy/users/{userId}`
- Auth: API key in header `clevergy-api-key`

Updates user properties

## Path parameters

- `userId` string, required

## Request body

- UpdateUser
  - `name` string
  - `surname` string
  - `email` string, email
  - `dni` string
  - `phoneNumber` string

## Response `200`

Record successfully updated.

## Other responses

- `401`: Unauthorized
- `404`: Not found
- `default`: Unexpected error

---

[API](https://skmtc.dev/clevergy/apis/clevergy-connect-api.md) - [All operations](https://skmtc.dev/clevergy/apis/clevergy-connect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/clevergy/apis/clevergy-connect-api/revisions/d333c5eecb5b?raw)
