dataengine API definition (1.0.0)
dataengine API definition
/v1/chart-query/
Request Body schema: application/json
| individual-id required  | string <uuid>    | ||||||||||||||||||||||||||||||||||||||||||||||||||
required  | Array of objects   | ||||||||||||||||||||||||||||||||||||||||||||||||||
 Array  
  | |||||||||||||||||||||||||||||||||||||||||||||||||||
Responses
Request samples
- Payload
 
Content type
application/json
{- "individual-id": "89cd2907-789f-4760-a83f-39e6a6ed819a",
 - "queries": [
- {
- "anchor": "string",
 - "clean-output": false,
 - "default-missing-value": 0,
 - "field": "string",
 - "filter-field": "string",
 - "filter-values": [
- "string"
 
], - "funcs": [
- "count"
 
], - "interval": "",
 - "organization-id": "884b39d6-2921-4a2e-a4db-914267f75c54",
 - "output-unit": "None",
 - "ranges": {
- "property1": {
- "operator": "all",
 - "property1": {
- "high": 0,
 - "low": 0
 
}, - "property2": {
- "high": 0,
 - "low": 0
 
} 
}, - "property2": {
- "operator": "all",
 - "property1": {
- "high": 0,
 - "low": 0
 
}, - "property2": {
- "high": 0,
 - "low": 0
 
} 
} 
}, - "reverse": false,
 - "round-output": false,
 - "source": "string",
 - "summary-funcs": [
- "max"
 
], - "take": 5,
 - "type": "ActiveEnergyBurned",
 - "tz-offset-db-override": false,
 - "tz-offset-mins": 0,
 - "zero-fill": false
 
} 
] 
}Response samples
- 201
 
Content type
application/vnd.api+json
{- "data": [
- {
- "data": [
- { }
 
], - "meta": { },
 - "range-summary": { },
 - "summary": { }
 
} 
] 
}/v1/data-query/
Request Body schema: application/json
| individual-id required  | string <uuid>    | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required  | Array of objects   | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 Array  
  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| expression | string  <= 255 characters ^[a-zA-Z0-9() ]*$   | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| expressions | Array of strings[^[a-zA-Z0-9() ]*$]   | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Responses
Request samples
- Payload
 
Content type
application/json
{- "expression": "string",
 - "expressions": [
- "string"
 
], - "individual-id": "89cd2907-789f-4760-a83f-39e6a6ed819a",
 - "queries": [
- {
- "anchor": "string",
 - "begin-datetime": "string",
 - "default-empty-value": true,
 - "default-missing-value": 0,
 - "end-datetime": "string",
 - "field": "string",
 - "filter-field": "string",
 - "filter-values": [
- "string"
 
], - "function": "all_in_range",
 - "high": 0,
 - "low": 0,
 - "organization-id": "884b39d6-2921-4a2e-a4db-914267f75c54",
 - "output-unit": "None",
 - "source": "string",
 - "summary-func": "count",
 - "summary-interval": "",
 - "tag": "string",
 - "take": 1,
 - "threshold-margins": [
- 0
 
], - "type": "ActiveEnergyBurned",
 - "tz-offset-db-override": false,
 - "tz-offset-mins": 0,
 - "unit": "days",
 - "user-data": [
- {
- "diastolic": 0,
 - "systolic": 0,
 - "time": "string",
 - "value": 0
 
} 
], - "value-key": "value"
 
} 
] 
}Response samples
- 201
 - 4XX
 
Content type
application/vnd.api+json
{- "data": {
- "expression": true,
 - "expressions": [
- true
 
], - "queries": [
- true
 
] 
} 
}/v1/interval-statistics-cumulative/
Request Body schema: application/json
| begin-datetime required  | string <datetime>    | 
| end-datetime required  | string <datetime>    | 
| individual-id required  | string <uuid>    | 
| interval required  | string  Enum: "" "daily" "hourly" "monthly" "weekly" "yearly"    | 
| type required  | string  Enum: "ActiveEnergyBurned" "ActiveTime" "AerobicSteps" "Auscultation" "Distance" "Mindfulness" "Steps" "WaterIntake"    | 
| field | string  <= 255 characters    | 
| filter-field | string  <= 255 characters    | 
| filter-values | Array of strings[ items  <= 255 characters  ]   | 
| organization-id | string <uuid>    | 
| output-unit | string  <= 255 characters   Default:  "None"   | 
| reverse | boolean  Default:  false   | 
| round-output | boolean  Default:  false   | 
| source | string  <= 255 characters    | 
| tz-offset-db-override | boolean  Default:  false   | 
| tz-offset-mins | integer  Default:  0   | 
| zero-fill | boolean  Default:  false   | 
Responses
Request samples
- Payload
 
Content type
application/json
{- "begin-datetime": "string",
 - "end-datetime": "string",
 - "field": "string",
 - "filter-field": "string",
 - "filter-values": [
- "string"
 
], - "individual-id": "89cd2907-789f-4760-a83f-39e6a6ed819a",
 - "interval": "",
 - "organization-id": "884b39d6-2921-4a2e-a4db-914267f75c54",
 - "output-unit": "None",
 - "reverse": false,
 - "round-output": false,
 - "source": "string",
 - "type": "ActiveEnergyBurned",
 - "tz-offset-db-override": false,
 - "tz-offset-mins": 0,
 - "zero-fill": false
 
}Response samples
- 201
 
Content type
application/vnd.api+json
{- "data": [
- { }
 
], - "meta": { }
 
}/v1/interval-statistics-summary/
Request Body schema: application/json
| begin-datetime required  | string <datetime>    | 
| end-datetime required  | string <datetime>    | 
| individual-id required  | string <uuid>    | 
| interval required  | string  Enum: "" "daily" "hourly" "monthly" "weekly" "yearly"    | 
| type required  | string  Enum: "ActiveEnergyBurned" "ActiveTime" "AerobicSteps" "AirQualityIndex" "Auscultation" "BloodGlucose" "BloodPressure" "BodyFatPercentage" "BodyMass" "BodyMassGoal" "BodyMassIndex" "BodyMassLean" "BodyTemperature" "Covid19" "DailyActivity" "DailyHeartRate" "Distance" "Dqv" "FeelingRating" "ForcedExpiratoryVolume" "HbA1c" "Height" "Hematocrit" "Hemoglobin" "Medication" "Mindfulness" "OxygenSaturation" "PeakFlow" "PeriodicPulse" "PollenCount" "PollenGrassIndex" "PollenRagweedIndex" "PollenTreeIndex" "PotassiumLevel" "Pulse" "SkinTemperature" "Steps" "Vo2Max" "WaistCircumference" "WaterIntake"    | 
| field | string  <= 255 characters    | 
| filter-field | string  <= 255 characters    | 
| filter-values | Array of strings[ items  <= 255 characters  ]   | 
| funcs | Array of strings Items Enum: "count" "max" "mean" "min" "sum"    | 
| organization-id | string <uuid>    | 
| output-unit | string  <= 255 characters   Default:  "None"   | 
| reverse | boolean  Default:  false   | 
| round-output | boolean  Default:  false   | 
| source | string  <= 255 characters    | 
| tz-offset-db-override | boolean  Default:  false   | 
| tz-offset-mins | integer  Default:  0   | 
| zero-fill | boolean  Default:  false   | 
Responses
Request samples
- Payload
 
Content type
application/json
{- "begin-datetime": "string",
 - "end-datetime": "string",
 - "field": "string",
 - "filter-field": "string",
 - "filter-values": [
- "string"
 
], - "funcs": [
- "count"
 
], - "individual-id": "89cd2907-789f-4760-a83f-39e6a6ed819a",
 - "interval": "",
 - "organization-id": "884b39d6-2921-4a2e-a4db-914267f75c54",
 - "output-unit": "None",
 - "reverse": false,
 - "round-output": false,
 - "source": "string",
 - "type": "ActiveEnergyBurned",
 - "tz-offset-db-override": false,
 - "tz-offset-mins": 0,
 - "zero-fill": false
 
}Response samples
- 201
 
Content type
application/vnd.api+json
{- "data": [
- { }
 
] 
}/v1/rule-query/
Request Body schema: application/json
| individual-id required  | string <uuid>    | ||||||||||||||||||||||||||
required  | Array of objects   | ||||||||||||||||||||||||||
 Array  
  | |||||||||||||||||||||||||||
| rrule | string <rrule>   Default:  "RRULE:INTERVAL=1;FREQ=DAILY"   | ||||||||||||||||||||||||||
Responses
Request samples
- Payload
 
Content type
application/json
{- "individual-id": "89cd2907-789f-4760-a83f-39e6a6ed819a",
 - "rrule": "RRULE:INTERVAL=1;FREQ=DAILY",
 - "rules": [
- {
- "actions": [
- "string"
 
], - "allow-missing": false,
 - "begin-datetime": "string",
 - "end-datetime": "string",
 - "field": "string",
 - "filter-field": "string",
 - "filter-values": [
- "string"
 
], - "function": "avg",
 - "high": 0,
 - "low": 0,
 - "organization-id": "884b39d6-2921-4a2e-a4db-914267f75c54",
 - "source": "string",
 - "type": "string"
 
} 
] 
}Response samples
- 201
 - 4XX
 
Content type
application/vnd.api+json
{- "data": [
- {
- "actions": [
- "string"
 
], - "allow-missing": false,
 - "begin-datetime": "string",
 - "end-datetime": "string",
 - "field": "string",
 - "filter-field": "string",
 - "filter-values": [
- "string"
 
], - "function": "avg",
 - "high": 0,
 - "low": 0,
 - "organization-id": "884b39d6-2921-4a2e-a4db-914267f75c54",
 - "source": "string",
 - "type": "string"
 
} 
] 
}/v1/sleep-analysis/
query Parameters
| begin-datetime required  | string <datetime>    | 
| end-datetime required  | string <datetime>    | 
| individual-id required  | string <uuid>    | 
| filter-field | string  <= 255 characters    | 
| filter-values | Array of strings[ items  <= 255 characters  ]   | 
| organization-id | string <uuid>    | 
| output-unit | string  Default:  "min"  Enum: "hour" "hours" "hr" "min" "minute" "minutes" "s" "second" "seconds"    | 
| page[limit] | integer  [ 1 .. 1000 ]   Default:  500   | 
| page[offset] | integer  >= 0   Default:  0   | 
| reverse | boolean  Default:  false   | 
| round-output | boolean  Default:  true   | 
| source | string  <= 255 characters    | 
| tz-offset-db-override | boolean  Default:  false   | 
| tz-offset-mins | integer  Default:  0   | 
Responses
Response samples
- 200
 
Content type
application/vnd.api+json
{- "data": [
- { }
 
], - "meta": { }
 
}/v1/sniffers/
Request Body schema: application/json
required  | object   | ||||||||||
  | |||||||||||
| meta | object   | ||||||||||
Responses
Request samples
- Payload
 
Content type
application/json
{- "data": {
- "attributes": {
- "user-id": "985e0971-72b1-44a2-96f2-064a853c99ad",
 - "valid-until": "string"
 
}, - "type": "sniffers"
 
}, - "meta": { }
 
}Response samples
- 201
 
Content type
application/vnd.api+json
{- "data": {
- "attributes": {
- "created-time": "string",
 - "user-id": "985e0971-72b1-44a2-96f2-064a853c99ad",
 - "valid-until": "string"
 
}, - "id": "11111111-1111-1111-1111-111111111111",
 - "type": "sniffers"
 
}, - "meta": { }
 
}Response samples
- 200
 
Content type
application/vnd.api+json
{- "data": {
- "attributes": {
- "created-time": "string",
 - "user-id": "985e0971-72b1-44a2-96f2-064a853c99ad",
 - "valid-until": "string"
 
}, - "id": "11111111-1111-1111-1111-111111111111",
 - "type": "sniffers"
 
}, - "meta": { }
 
}/v1/sniffers/{id}/get-logs/
path Parameters
| id required  | string  Resource identifier  | 
query Parameters
| page[limit] | integer (PageLimit)   [ 1 .. 1000 ]   Default:  100   | 
| page[offset] | integer (PageOffset)   >= 0   Default:  0   | 
Responses
Response samples
- 200
 
Content type
application/vnd.api+json
{- "data": [
- {
- "attributes": {
- "body": "string",
 - "content_type": "string",
 - "created-time": "string",
 - "message": "string",
 - "method": "string",
 - "path": "string",
 - "query-string": "string",
 - "request-id": "string",
 - "response": "string",
 - "status-code": 0,
 - "trace-id": "string",
 - "user-agent": "string"
 
}, - "id": "11111111-1111-1111-1111-111111111111",
 - "type": "sniffer-logs"
 
} 
], - "meta": { }
 
}/v1/timeline/
query Parameters
| begin-datetime required  | string <datetime>    | 
| end-datetime required  | string <datetime>    | 
| individual-id required  | string <uuid>    | 
Responses
Response samples
- 200
 
Content type
application/vnd.api+json
{- "data": [
- {
- "attributes": {
- "description": "string",
 - "event-type": "date",
 - "status": "Active"
 
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "time": "string",
 - "type": "immunizations"
 
} 
] 
}/v1/timeseries/
query Parameters
| begin-datetime required  | string <datetime>    | 
| end-datetime required  | string <datetime>    | 
| individual-id required  | string <uuid>    | 
| type required  | string  Enum: "ActiveEnergyBurned" "ActiveTime" "AerobicSteps" "AirQualityIndex" "Auscultation" "BloodGlucose" "BloodPressure" "BodyFatPercentage" "BodyMass" "BodyMassGoal" "BodyMassIndex" "BodyMassLean" "BodyTemperature" "Covid19" "DailyActivity" "DailyHeartRate" "Distance" "Dqv" "FeelingRating" "FluActivity" "ForcedExpiratoryVolume" "HbA1c" "Height" "Hematocrit" "Hemoglobin" "Medication" "Mindfulness" "OxygenSaturation" "PeakFlow" "PeriodicPulse" "PollenCount" "PollenGrassIndex" "PollenRagweedIndex" "PollenTreeIndex" "PotassiumLevel" "Pulse" "SkinTemperature" "SleepAnalysis" "Steps" "Vo2Max" "WaistCircumference" "WaterIntake"    | 
| filter-field | string  <= 255 characters    | 
| filter-values | Array of strings[ items  <= 255 characters  ]   | 
| include-count | boolean  Default:  false  When true, include full record count in response meta, else just include total for page being fetched  | 
| include-prior | boolean  Default:  false  When true, include record just before provided time range (does not work with DailyActivity or SleepAnalysis)  | 
| organization-id | string <uuid>    | 
| output-unit | string  <= 255 characters   Default:  "None"   | 
| page[limit] | integer  [ 1 .. 1000 ]   Default:  500   | 
| page[offset] | integer  >= 0   Default:  0   | 
| reverse | boolean  Default:  false   | 
| round-output | boolean  Default:  false   | 
| source | string  <= 255 characters    | 
Responses
Response samples
- 200
 - 4XX
 
Content type
application/vnd.api+json
{- "data": [
- { }
 
], - "meta": { }
 
}/v1/timeseries/
Request Body schema: application/json
required  | object   | ||||||||||||||||||||||||||
  | |||||||||||||||||||||||||||
| meta | object   | ||||||||||||||||||||||||||
Responses
Request samples
- Payload
 
Content type
application/json
{- "data": {
- "attributes": {
- "data": [
- {
- "source": "string",
 - "tz-offset-mins": 0
 
} 
], - "individual-id": "89cd2907-789f-4760-a83f-39e6a6ed819a",
 - "input-unit": "None",
 - "organization-id": "884b39d6-2921-4a2e-a4db-914267f75c54",
 - "type": "ActiveEnergyBurned",
 - "tz-offset-mins": 0
 
}, - "type": "time-series"
 
}, - "meta": { }
 
}Response samples
- 201
 
Content type
application/vnd.api+json
{- "data": {
- "attributes": {
- "num-created": 0
 
}, - "type": "time-series"
 
}, - "meta": { }
 
}/v1/timeseries/{id}/
path Parameters
| id required  | string  Resource identifier  | 
query Parameters
| type required  | string  Enum: "ActiveEnergyBurned" "ActiveTime" "AerobicSteps" "AirQualityIndex" "Auscultation" "BloodGlucose" "BloodPressure" "BodyFatPercentage" "BodyMass" "BodyMassGoal" "BodyMassIndex" "BodyMassLean" "BodyTemperature" "Covid19" "DailyActivity" "DailyHeartRate" "Distance" "Dqv" "FeelingRating" "FluActivity" "ForcedExpiratoryVolume" "HbA1c" "Height" "Hematocrit" "Hemoglobin" "Medication" "Mindfulness" "OxygenSaturation" "PeakFlow" "PeriodicPulse" "PollenCount" "PollenGrassIndex" "PollenRagweedIndex" "PollenTreeIndex" "PotassiumLevel" "Pulse" "SkinTemperature" "SleepAnalysis" "Steps" "Vo2Max" "WaistCircumference" "WaterIntake"    | 
| begin-time | string <datetime>    | 
| end-time | string <datetime>    | 
| include-participant | boolean   | 
| organization-id | string <uuid>    | 
| time | string <datetime>    | 
Responses
Response samples
- 200
 - 4XX
 
Content type
application/vnd.api+json
{- "data": {
- "attributes": {
- "num-deleted": 0
 
}, - "type": "time-series"
 
}, - "meta": { }
 
}/v1/timeseries/{id}/bulk-delete/
path Parameters
| id required  | string  Resource identifier  | 
Request Body schema: application/json
required  | object   | ||||||||||||
  | |||||||||||||
| meta | object   | ||||||||||||
Responses
Request samples
- Payload
 
Content type
application/json
{- "data": {
- "attributes": {
- "data": [
- { }
 
], - "organization-id": "884b39d6-2921-4a2e-a4db-914267f75c54",
 - "type": "ActiveEnergyBurned"
 
}, - "type": "time-series"
 
}, - "meta": { }
 
}Response samples
- 201
 - 4XX
 
Content type
application/vnd.api+json
{- "data": {
- "attributes": {
- "num-deleted": 0
 
}, - "type": "time-series"
 
}, - "meta": { }
 
}/v1/units/
query Parameters
| types | Array of strings Items Enum: "ActiveEnergyBurned" "ActiveTime" "AerobicSteps" "AirQualityIndex" "Auscultation" "BloodGlucose" "BloodPressure" "BodyFatPercentage" "BodyMass" "BodyMassGoal" "BodyMassIndex" "BodyMassLean" "BodyTemperature" "Covid19" "DailyActivity" "DailyHeartRate" "Distance" "Dqv" "FeelingRating" "FluActivity" "ForcedExpiratoryVolume" "HbA1c" "Height" "Hematocrit" "Hemoglobin" "Medication" "Mindfulness" "OxygenSaturation" "PeakFlow" "PeriodicPulse" "PollenCount" "PollenGrassIndex" "PollenRagweedIndex" "PollenTreeIndex" "PotassiumLevel" "Pulse" "SkinTemperature" "SleepAnalysis" "Steps" "Vo2Max" "WaistCircumference" "WaterIntake"    | 
Responses
Response samples
- 200
 
Content type
application/vnd.api+json
{- "data": [
- {
- "type": "string",
 - "units": [
- "string"
 
] 
} 
] 
}