Recovery

Record one morning's readings

Every reading is optional; readiness uses whatever is there. A day with every reading null is deleted, since an empty row would read as measured-and-nothing. Readings cleared here stay clear through later syncs.

put/wellness/{date}

Request

  • Base URL: https://bodylab.lol/api/v1
  • URL: https://bodylab.lol/api/v1/wellness/{date}
  • Auth: HTTP bearer

Path parameters

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

Request body

restingHrinteger nullable required

Morning resting heart rate, beats per minute.

hrvinteger nullable required

Overnight heart-rate variability, milliseconds (RMSSD).

sleepScoreinteger nullable required

Sleep score, 0–100.

energyinteger nullable required

A device's energy or body-battery score, 0–100.

sleepMinutesinteger nullable

Minutes asleep. Omitted leaves the day's value as it is, so a client that doesn't show sleep minutes doesn't clear them.

Response

No content.

Changes

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