Skip to main content
PUT
Set user role

Authorizations

better-auth.session_token
string
cookie
required

Path Parameters

userId
string
required
Minimum string length: 1

Body

application/json
role
enum<string>
required
Available options:
admin,
user

Response

Role updated