Activities

Record an activity by hand

post/activities

Request

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

activityTypestring required
namestring nullable
startTimestring date-time required

An instant: ISO-8601 with offset, e.g. 2026-09-13T06:30:00Z.

durationSinteger required
distanceMnumber nullable
elevationGainMnumber nullable
avgHrinteger nullable
maxHrinteger nullable
avgPowerWinteger nullable
sessionRpenumber nullable
notesstring nullable

Response

OK

idstring required

Opaque identifier.

Changes

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