Request deletion for a record

DELETE /api/delete/{method}

Request deletion for a record. This method does not delete the record from the HCGateway database. This method is only used to request deletion of a record from your local Health Connect store. The app will delete it from the database using the sync method once it has deleted the record(s) locally.

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

  • uuid array[string]

    The uuid of the record to delete. Can be a string or an array of strings.

Responses

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