Skip to content

Update User Role (Admin)

PATCH
/users/{accountId}/role

Updates a user's role in the system (e.g., admin, user). Administrators cannot change their own role. Admin access required.

Authorizations

BearerAuth

Enter your session token to authenticate API requests

Type
HTTP (bearer)

Parameters

Path Parameters

accountId*

The unique identifier of the user account

Type
string
Required

Request Body

application/json
JSON
"string"

Responses

Role successfully updated

application/json
JSON
{
}

Playground

Server
Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

Distributed under the MIT License