Activities
Bulk, idempotent ingest of a device's workouts
For Apple Health/Health Connect syncing: each item upserts by (source, externalId), so a retried or re-synced request is safe — a second identical request reports every item "unchanged". At most 500 items; a bad item is reported "rejected" with a reason and the rest of the batch still runs, so only a malformed request as a whole is a 400. source is never "manual" or "garmin" — those keep their own paths.
post/activities/batch
Request
- Base URL: https://bodylab.lol/api/v1
- URL: https://bodylab.lol/api/v1/activities/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.