Biomech

Ingest Baselines

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

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

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