Training

How a finished week went, and what changes next

Omit week for the most recent complete week, which is the only one that also says what comes next and whether training supports an upcoming A event. Weeks run Monday to Sunday on the athlete's calendar.

get/training/weekly-review

Request

  • Base URL: https://bodylab.lol/api/v1
  • URL: https://bodylab.lol/api/v1/training/weekly-review
  • Auth: HTTP bearer

Query parameters

weekstring date

Any day in the week to review. Defaults to the most recent complete week.

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

weekStartstring date required

The Monday the week starts on.

weekEndstring date required

The Sunday it ends on.

latestboolean required

The most recent complete week. Only it carries ahead and event.

previousWeekstring date nullable required

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

nextWeekstring date nullable required

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

units'metric' | 'imperial' required

How to display quantities; the API always speaks SI.

hasDataboolean required

Whether anything was recorded, planned or reported that week.

headlinestring required

The week in one line.

Changes

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