cURL
curl --request POST \ --url https://app.d-sports.org/api/admin/fix-team-ownership \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "teamId": "<string>" } '
Assigns the current admin as owner of orphaned teams. Optionally target a specific team by ID. Requires admin role.
Clerk session token. Use Authorization: Bearer .
Optional. Fix a specific team instead of all orphaned teams.
{ success, data: { message, currentUserId, fixed } }
Was this page helpful?