Update a workspace member’s permission level
/api/members/user%40company.com or /api/members/[email protected]admin - Full workspace access, can manage members and settingssend - Can view, edit, and send emailsedit - Can view and edit drafts, but cannot sendview - Read-only access to threads and emailsADMIN_EMAILS) cannot be downgraded to non-admin rolessrc/app/api/members/[email]/route.ts:10ADMIN_EMAILS environment variable are protected: