Recovery

Choose the source of the step series

Every day's count comes from one source. By default that is the source with the most counts, and it moves when another overtakes it; choosing one fixes it until it's chosen again or set back to null. Every past day is re-resolved onto the source, so a day only that source counted gains a count and a day it didn't count loses one. Answers with the series' sources as GET /wellness/steps reports them.

put/wellness/steps/source

Request

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

sourcestring nullable required

A source from GET /wellness/steps sources, or null to go back to the one with the most counts.

Response

OK

seriesSourcestring nullable required

The source every day's count comes from now: chosenSource when set, otherwise the source with the most counts (the earliest to report on a tie). Null before any count.

chosenSourcestring nullable required

The source the athlete chose for steps (PUT /wellness/steps/source), or null while Body Lab picks the one with the most counts.

Changes

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