Strength

Which exercises a strength slot may be swapped to today

The catalogue by movement pattern, with anything today's health report or the athlete's equipment rules out taken off and a sentence saying why. A runner's swap picker is built from this rather than from /exercises, so a replacement lift answers to the same report and the same equipment the prescribed one did.

get/training/swap-options

Request

  • Base URL: https://bodylab.lol/api/v1
  • URL: https://bodylab.lol/api/v1/training/swap-options
  • 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).

Response

OK

movementPatternstring required

The pattern these are the options for. Known values: squat, hinge, lunge, horizontal_push, vertical_push, horizontal_pull, vertical_pull, carry, core, calf, isolation, jump, olympic, conditioning. Treat unknown values as "other".

exerciseIdsstring[] required

Catalogue ids a slot in this pattern may be swapped to today, in catalogue order. Empty when today's report and the athlete's equipment leave nothing in the pattern — which is also a day no slot of it is prescribed.

excludedCountinteger required

How many exercises in this pattern were left out, by today's report or by the athlete's equipment. 0 on a day with nothing reported, for an athlete whose equipment answers the whole pattern.

notestring nullable required

Why they were left out, for the athlete, and where they can change it: one sentence per reason, so a day with both a sore knee and missing equipment gives both. Null when nothing was left out.

Changes

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