---
title: "Update user role"
method: PATCH
path: "/users/{userId}/role"
tags: ["User"]
---

# Update user role

`PATCH /users/{userId}/role`

Updates the role of a user with the specified ID

## Path parameters

- `userId` integer, required

## Query parameters

- `role` 0 | 1 | 2 | 3 | 4 — Viewer = 0 User = 1 SuperUser = 2 Admin = 3 SuperAdmin = 4
- `organizationId` integer

## Response `200`

Success

---

[API](https://skmtc.net/diabatix/apis/identity-api.md) · [All operations](https://skmtc.net/diabatix/apis/identity-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/diabatix/identity-api/versions/81fb509120cf/schema)
