Activities

Import one or more FIT/GPX activity files

multipart/form-data with one or more file[] parts (the trailing brackets keep a single file from decoding as a scalar instead of a one-element array). Each file is imported and reported on individually, in the order sent, so one bad file in a batch doesn't lose the rest. At most 50 files and 100 MB per request; a per-user rolling 24-hour storage quota applies across requests (QUOTA_EXCEEDED, 429).

post/activities/files

Request

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

filestring[] required

Response

OK

Changes

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