StatsHub Docs
APIEndpoint referenceDashboard

/dashboard/bot/league-groups/{id}/leagues

Every id is validated before any is inserted, and an unknown one fails the whole request naming which — adding half a set silently would leave the operator unsure what happened.

POST
/api/dashboard/bot/league-groups/{id}/leagues

Every id is validated before any is inserted, and an unknown one fails the whole request naming which — adding half a set silently would leave the operator unsure what happened.

Adding a competition already in the group is not an error; the insert does nothing for it.

Authorization

AuthorizationBearer <token>

Supabase access token.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/dashboard/bot/league-groups/string/leagues" \  -H "Content-Type: application/json" \  -d '{    "tournamentIds": [      0    ]  }'
[  {    "name": "string",    "slug": "string",    "tournamentId": 0,    "uniqueTournamentId": 0  }]