v1

OpenAPI 3.1.02026-08-0410576180.0 KB
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 nullable
Leaguestring nullable

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