Ingest multiple wearable data points
Batch version of /wearables/ingest for syncing many readings from one source at once. Points that carry a `source_record_id` already stored for this user and source are skipped, so on-device syncs (HealthKit, Health Connect) can safely resend overlapping windows.
Authorization
HTTPBearer In: header
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/wearables/bulk-ingest" \ -H "Content-Type: application/json" \ -d '{ "source": "apple_health", "data_points": [ { "metric": "string", "value": 0, "unit": "string", "recorded_at": "2019-08-24T14:15:22Z" } ] }'null{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Wearables
Wearable device sync status and raw data points (Apple Health, Garmin, etc.).
Choose a wearable source POST
Registers the source (e.g. `apple_health`, `garmin`) the patient has chosen as their connected device. Marks it `is_primary`, unsetting any previously-primary source, and creates a `pending` sync record if this source has never been seen before — connecting doesn't require any data to have synced yet.