cURL
curl --request POST \ --url https://app.d-sports.org/api/admin/users/toggle-admin \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "targetUserId": "<string>", "action": "grant" } '
Superadmin-only. Grant or revoke admin role for a target user.
Clerk session token. Use Authorization: Bearer .
grant
revoke
{ success }
Was this page helpful?