Udon is under active development. Documentation not final.
udonudon
Users

Change a user's role

Change a user's role. Requires the **admin** role.

POST
/api/users/{id}/role

Authorization

udon_session<token>

In: cookie

Path Parameters

id*string

The user's identifier.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/users/string/role" \  -H "Content-Type: application/json" \  -d '{    "role": "viewer"  }'
Empty

Ask AI

Answers from Udon's documentation.

Ask how to install Udon, run containers, or share folders.