Training

Sessions committed to for a day, newest first

Newest first, so the first is the one the athlete committed to last: a client that opens on a planned session should open on that one. done is true once a completed activity has been matched to the plan, so a client can stop presenting it as still to do.

get/planned-workouts

Request

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

Query parameters

forDatestring date required

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

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).

Response

OK

idstring required

Opaque identifier.

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".

workoutTypestring nullable required
doneboolean required

Changes

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