Admin

Seed/refresh the teams reference table from upstream APIs

POST https://api.rewind.rest/v1/admin/attending/seed-teams

Populates the teams table from MLB Stats API (roster, division, home venue) and ESPN site API (brand colors). Idempotent — uses ON CONFLICT(league, league_team_id), so re-running picks up roster changes and color tweaks without duplicating rows. Pass skip_colors: true to skip the ESPN round-trip on a fast refresh.

Authorization

Authorizationheaderstringrequired

API key. Read keys (rw_live_...) access GET endpoints. Admin keys (rw_admin_...) access all endpoints.

Body

skip_colorsbodyboolean
league_team_idsbodyarray of integer

Response

application/json

Team seed completed

statusenum (string)required
Allowed valuescompleted
leagueenum (string)required
Allowed valuesmlb
scannedintegerrequired
insertedintegerrequired
updatedintegerrequired
failuresarray of objectrequired