Avycenna

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.

POST
/api/v1/wearables/bulk-ingest

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Header Parameters

x-api-key?string|null

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"    }  ]}