---
title: "Update user by ID"
method: PATCH
path: "/users/{userId}"
tags: ["Users"]
---

# Update user by ID

`PATCH /users/{userId}`

## Path parameters

- `userId` integer, required

## Request body

- UserUpdate
  - `name` string
  - `surname` string
  - `email` string, email
  - `role_id` integer

## Response `200`

User updated successfully

- ApiResponse
  - `message` string — Response status message
  - `data` unknown

---

[API](https://skmtc.dev/verifywise-ai/apis/verifywise-api.md) · [All operations](https://skmtc.dev/verifywise-ai/apis/verifywise-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/verifywise-ai/verifywise-api/revisions/cfa9ae933c17/schema)
