Biomech

Ingest Baselines

Changed on

Ingest per-player biomech baselines and baseline frames.

New baselines are inserted normally. Replacing an existing baseline requires replace_existing=true; only then does the endpoint DELETE all existing biomech_baseline_frame rows for that player_id and bulk-insert the new ones. skip_existing=true leaves existing baselines unchanged. Each baseline is committed independently.

Player resolution: same caveat as /historical-stats — if player.alias triggers bootstrap, the new player_info row will have team_id=NULL. Establish player_info via POST /biomech/sessions or roster creation first to avoid teamless pitcher records.

post/api/v1/biomech/baselines

Request

  • Base URL
    https://developer.preciser.io
  • URL
    https://developer.preciser.io/api/v1/biomech/baselines
  • Auth
    none declared. Required headers: x-api-key, League

Headers

x-api-keystring required

Required API key issued by Preciser.

Leaguestring required

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

Request body

skip_existingboolean

Leave an existing player baseline unchanged.

replace_existingboolean

Explicitly allow replacement of an existing player baseline and all of its frames.

Response

Successful Response

successboolean required
players_upsertedinteger required
players_skippedinteger
frames_insertedinteger required

Changes

    • breaking

      the header request parameter League became required

    • breaking

      the header request parameter x-api-key became required

    • breaking

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

    • breaking

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

    • info

      for the header request parameter League, the type was generalized from no type to string

    • info

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