Teams

Get team season state

Changed on

Public. The off-season hub gate for one team and nothing else: { teamId, teamSlug, seasonState: { state, hubEnabled } }. Same derivation as team.seasonState on GET /api/teams/{id}, for clients that only need the gate. state comes from the league's persisted hockey calendar window (LeagueSeasonWindow) and is compared in whole UTC days with endDate inclusive; a manual stateOverride or hubEnabled on that window wins over the dates. A team whose league has no window falls back to the default hockey calendar, but only for sport hockey — any other sport, and a team with no league, resolves to in_season with the hub closed. Archived and unknown refs 404; a blank ref is 400.

get/api/teams/{id}/season-state

Request

  • Base URL
    https://app.d-sports.org
  • Auth
    none required

Path parameters

idstring required

Team id or slug.

Response

{ success, data: { teamId, teamSlug, seasonState } }

Changes