Fitbit workouts expanded to include device object
over 2 years ago by Toni Connelly
In August 2022, we updated the device object for Fitbit workouts records to report the Fitbit device name when that information is reported to us by Fitbit. Device names will be reported as the "model" in the "source" object of Fitbit workout records, as shown below:
"source": {
"type": "fitbit",
"device": {
"id": null,
"model": "sense",
"manufacturer": "fitbit",
"diagnostics": []
}
},
Here is a sample of what a workout could look like after this change:
{
"data": [
{
"category": "other",
"checksum": "840d...c",
"created_at": "2022-08-04T13:51:05.704Z",
"deleted_at": null,
"end_time": "2022-08-04T13:41:57Z",
"id": "4ca...14",
"log_id": "49923764585",
"metrics": [
{
"type": "active_duration",
"origin": "device",
"unit": "s",
"value": 0.0
},
{
"type": "steps",
"origin": "device",
"unit": "count",
"value": 20
},
{
"type": "energy_burned",
"origin": "device",
"unit": "kcal",
"value": 26.0
},
{
"type": "avg_heart_rate",
"origin": "device",
"unit": "bpm",
"value": 84
},
{
"type": "workout_duration",
"origin": "device",
"unit": "s",
"value": 1581.0
},
{
"type": "heart_rate_zone_high",
"origin": "device",
"unit": "s",
"value": 0.0
},
{
"type": "heart_rate_zone_low",
"origin": "device",
"unit": "s",
"value": 0.0
},
{
"type": "heart_rate_zone_medium",
"origin": "device",
"unit": "s",
"value": 0.0
},
{
"type": "heart_rate_zone_very_low",
"origin": "device",
"unit": "s",
"value": 1560.0
},
{
"type": "fairly_active_duration",
"origin": "device",
"unit": "s",
"value": 0.0
},
{
"type": "lightly_active_duration",
"origin": "device",
"unit": "s",
"value": 60.0
},
{
"type": "very_active_duration",
"origin": "device",
"unit": "s",
"value": 0.0
}
],
"name": "Yoga",
"offset_origin": "profile",
"segments": [],
"source": {
"type": "fitbit",
"device": {
"id": null,
"model": "sense",
"manufacturer": "fitbit",
"diagnostics": []
}
},
"start_time": "2022-08-04T13:15:36Z",
"tags": [],
"type": "workout",
"user": {
"organization_id": "6...e",
"user_id": "6...4",
"uid": "a...z"
},
"user_notes": [],
"utc_offset": -14400,
"version": "1.0"
}
]
}