Skip to main content
POST
Grant team-admin role to a user

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Path Parameters

team_id
string
required

Team identifier (UUID)

Body

application/json
user_id
string<uuid>
required

Response

Grant created.

Team-admin grant — allows a non-org-admin user to administer one team.

user_id
string<uuid>
required
team_id
string<uuid>
required
granted_at
string<date-time>
required
granted_by
string<uuid> | null
revoked_at
string<date-time> | null

When the grant was revoked. null on active grants.

idempotent_noop
boolean

Present on grant and revoke responses. true when the request was a no-op (grant already active / already revoked).