Skip to main content
POST
/
api
/
admin
/
fix-team-ownership
Fix team ownership
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>"
}
'

Authorizations

Authorization
string
header
required

Clerk session token. Use Authorization: Bearer .

Body

application/json
teamId
string

Optional. Fix a specific team instead of all orphaned teams.

Response

{ success, data: { message, currentUserId, fixed } }