Recovery

Apple Health days, as Health stores them

For the iOS app: each item is one Health stream's complete sample set for one local day. At most 50 days per request. The server archives each day and derives its readings (resting HR, HRV, VO2max, weight, sleep minutes and the sleep period, and from step_count's statistics the day's step count). Idempotent: a day identical to the one held answers "unchanged". An empty day deletes the readings derived from it.

post/wellness/health-days/batch

Request

  • Base URL: https://bodylab.lol/api/v1
  • URL: https://bodylab.lol/api/v1/wellness/health-days/batch
  • 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

Response

OK

Changes

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