---
title: "PUT /users/{id}"
method: PUT
path: "/users/{id}"
tags: ["users"]
---

# PUT /users/{id}

`PUT /users/{id}`

## Path parameters

- `id` integer, required

## Request body

- object
  - `name` string
  - `email` string
  - `password_hash` string
  - `role` integer
  - `created_at` string, date-time
  - `last_login` string, date-time

## Response `202`

user

- object
  - `message` string
  - `data` User
    - `id` integer
    - `name` string
    - `surname` string
    - `email` string
    - `password_hash` string
    - `role` integer
    - `created_at` string, date-time
    - `last_login` string, date-time

## Other responses

- `404` — no content to display
- `500` — internal server error

## Changes

- **2025-08-07** `8f39d60f160a` — 1 breaking, 8 info
  - the `data` response's property type/format changed from ``/`` to `object`/`` for status `202`
  - added the optional property `data/created_at` to the response with the `202` status
  - added the optional property `data/email` to the response with the `202` status
  - added the optional property `data/id` to the response with the `202` status
  - …5 more
- **2025-01-22** `ed48b7196725` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/verifywise-ai/apis/verifywise-api/changes/users/:id/put.md)

---

[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/8f39d60f160a/schema)
