Skip to main content
PATCH
Change a user's role
AdminOnly Bearer token, role admin

Authorizations

Authorization
string
header
required

Supabase access token of an account with role = 'admin' in public.users.

Path Parameters

id
string<uuid>
required

User ID.

Body

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

Response

Updated user

success
boolean
Example:

true

data
object
Last modified on October 18, 2026