Admin

List league season windows

Changed on

Platform admin only. Every persisted hockey calendar window for a league, newest season first: { windows: [{ id, leagueId, seasonYear, startDate, endDate, preseasonStartDate, stateOverride, hubEnabled, createdAt, updatedAt }] }. These rows drive seasonState on team detail (#999). Nullable stateOverride / hubEnabled mean the phase and hub switch are derived from the dates. 404 for an unknown league ref, so an empty list means no calendar is configured yet.

get/api/admin/leagues/{leagueId}/season-windows

Request

  • Base URL
    https://app.d-sports.org
  • Auth
    HTTP bearer

Path parameters

leagueIdstring required

League id or slug.

Response

{ success, data: { windows } }

Changes