Insert data into your local Health Connect store

PUT /api/v2/push/{method}

Insert data into your local Health Connect store. This method does not add the data to the HCGateway database. This method is only used to push data to your local Health Connect store. This is so you can sync + fetch to verify the record has been added.

Path parameters

  • method string Required

    Can be one of the following: activeCaloriesBurned, basalBodyTemperature, basalMetabolicRate, bloodGlucose, bloodPressure, bodyFat, bodyTemperature, boneMass, cervicalMucus, distance, exerciseSession, elevationGained, floorsClimbed, heartRate, height, hydration, leanBodyMass, menstruationFlow, menstruationPeriod, nutrition, ovulationTest, oxygenSaturation, power, respiratoryRate, restingHeartRate, sleepSession, speed, steps, stepsCadence, totalCaloriesBurned, vo2Max, weight, wheelchairPushes

application/json

Body

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
PUT /api/v2/push/{method}
curl \
 -X PUT https://api.hcgateway.shuchir.dev/api/v2/push/{method} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"data":[{}]}'
Request examples
{
  "data": [
    {}
  ]
}
Response examples (200)
{
  "success": true,
  "message": "string"
}