Activities

Group two or more activities as one recorded session

For a pair the automatic matcher left separate: ambiguous (more than one plausible match) or never considered (mismatched sport types, or a summary whose time window doesn't overlap). Requires the same sport family; which one ends up counted follows the matcher's own ranking.

post/activities/merge

Request

  • Base URL: https://bodylab.lol/api/v1
  • URL: https://bodylab.lol/api/v1/activities/merge
  • 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

activityIdsstring[] required

Two or more activities to group as one session — each may already be the counted row of its own group.

Response

OK

groupIdstring required

The id of the activity now counted for the merged group.

Changes

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