Training

A prescribed session as a FIT workout file

Loads on Garmin, Wahoo, Hammerhead and Coros devices. Also records the plan.

post/planned-workouts/fit

Request

  • Base URL: https://bodylab.lol/api/v1
  • URL: https://bodylab.lol/api/v1/planned-workouts/fit
  • Auth: HTTP bearer

Headers

X-Client-Platformstring

The native client's platform, e.g. ios. Server-side and non-native callers omit it.

X-Client-Versionstring

The native client's own semver version. With X-Client-Platform, a version below that platform's minimum is refused with CLIENT_UPGRADE_REQUIRED (426).

Request body

namestring required
modalitystring required

Sport, from the engine's vocabulary (packages/engine/src/sports.ts), e.g. road_biking, running, hiking, strength_training. Known values: road_biking, running, hiking, strength_training, other. Treat unknown values as "other".

forDatestring date required

A day on the athlete's own calendar: YYYY-MM-DD, no time zone.

Response

OK

filenamestring required
base64string required

The FIT file, base64-encoded.

Changes

No recorded changes to this operation across all 1 revision of this API.