---
title: "Update Admin User"
method: PATCH
path: "/api/v1/admin/users/{id}"
tags: ["Admin Users"]
---

# Update Admin User

`PATCH /api/v1/admin/users/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `displayName` string, nullable
  - `password` string — Set to reset the user's password
  - `roleId` integer
  - `isActive` boolean

## Response `200`

Updated

- object — Updated
  - `success` boolean, required
  - `data` object, required

## Other responses

- `400` — Validation failed or last super admin protection
- `403` — Insufficient permissions or self-deactivation attempt
- `404` — User not found

---

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