Today

Today's daily update: whether it's due, and its steps

Send the device's IANA time zone so a trip can be noticed; only the zone's name is kept. Reading it finishes an experiment whose schedule is over.

get/training/daily-update

Request

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

Query parameters

deviceTimeZonestring

The device's IANA time zone, e.g. Europe/London.

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

datestring date required

Today on the athlete's calendar: the morning, describing the night before.

dueboolean required
presentationstring required

How to show it. full: open as Today's check-in element, above the main session, with a Later control in its header. chip: its compact form under the session, which opens it in place (deferred today, or after three Laters in a row). none: nothing. Known values: full, chip, none. Treat unknown values as "other".

reasonstring required

Why, as a code: due, quiet, later, answered, off, no_trigger, first_day, not_onboarded.

statusstring nullable required

Today's row: draft until the yesterday step is answered, then answered; later when deferred. Null before anything is said. Known values: draft, answered, later. Treat unknown values as "other".

cycleAvailableboolean required

Whether the cycle question applies to this athlete, so "Period started today" can be offered under More on any day.

Changes

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