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

TypeHTTP (bearer)

Parameters

Path Parameters

accountId*

The unique identifier of the user account

Typestring
Required

Request Body

application/json
JSON
{
"role": "string"
}

Responses

Admin access required
application/json
JSON
{
}

Playground

Server
Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

Distributed under the MIT License