Today

Answer some of today's update

Saves the answers it names and returns the update with its steps recomputed, so a step that depends on an answer is decided here. The day is a draft until the yesterday step is answered; a draft's feel is kept, but nothing in a draft counts toward patterns. Changes no prescription.

patch/training/daily-update

Request

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

feelinteger

1 Wrecked, 2 Flat, 3 OK, 4 Good, 5 Ready to go.

nothingUnusualboolean

True answers the yesterday step and clears the chips. Not with a non-empty exposures in the same request.

discordantReason'sleep' | 'stress' | 'sore' | 'ill' | 'not_sure' nullable
shortSleepReason'bed_late' | 'woke_early' | 'up_in_night' | 'woken' | 'not_sure' nullable
legs'fresh' | 'heavy' | 'sore' nullable

A sore spot is also reported as an injury, with POST /training/health-reports.

cycle'started' | 'not_today' | 'no_periods'

started records today as a start; no_periods turns the question off (cycleTracking off); not_today records nothing.

experimentKeptboolean

Whether last night's arm of the running experiment was kept.

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.