Users
Change a user's role
Change a user's role. Requires the **admin** role.
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