Biomech

Ingest Historical Stats

Ingest biomech historical stat rows.

Player resolution: if a row uses player.alias for a pitcher that does not yet exist in player_info, this endpoint will bootstrap the row with team_id=NULL (no team binding is available at this stage). Callers should establish player_info first — either via POST /biomech/sessions (which can resolve team_id from the session's team_id field) or by pre-creating rosters — to avoid teamless pitcher records.

post/api/v1/biomech/historical-stats

Headers

x-api-keystring required

Required API key issued by Preciser.

Required API key issued by Preciser.

Leaguestring required

Required tenant/database selector, for example pitchbio-master.

Required tenant/database selector, for example pitchbio-master.

Request body

Response

Successful Response

successboolean required
rows_upsertedinteger required

Changes

Changed in 1 of the 10 revisions of this API.42

  • 9b0abde08b0642See the full diff
    • the header request parameter League became required

      request-parameter-became-required

    • the header request parameter x-api-key became required

      request-parameter-became-required

    • header request parameter League list-of-types was narrowed by removing types null

      request-parameter-list-of-types-narrowed

    • header request parameter x-api-key list-of-types was narrowed by removing types null

      request-parameter-list-of-types-narrowed

    • for the header request parameter League, the type/format was generalized from / to string/

      request-parameter-type-generalized

    • for the header request parameter x-api-key, the type/format was generalized from / to string/

      request-parameter-type-generalized