Get team season state
Changed onPublic. 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.
Request
- Base URLhttps://app.d-sports.org
- Authnone required
Path parameters
Team id or slug.
Response
{ success, data: { teamId, teamSlug, seasonState } }
Changes
- info
endpoint added
- info