Components
Replace a health data component
put/studies/{studyId}/components/health-data/{componentId}
Request
- Base URL: http://localhost:8080/api/v0
- URL: http://localhost:8080/api/v0/studies/{studyId}/components/health-data/{componentId}
- Auth: HTTP bearer
Path parameters
studyIdstring uuid required
componentIdstring uuid required
Request body
Example request
{
"data": {
"sampleTypes": [
"HKQuantityType;HKQuantityTypeIdentifierHeartRate",
"HKQuantityType;HKQuantityTypeIdentifierStepCount",
"HKCategoryType;HKCategoryTypeIdentifierSleepAnalysis"
]
}
}Response
Component replaced
Example response
{
"data": {
"sampleTypes": [
"HKQuantityType;HKQuantityTypeIdentifierHeartRate",
"HKQuantityType;HKQuantityTypeIdentifierStepCount",
"HKCategoryType;HKCategoryTypeIdentifierSleepAnalysis"
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.