04-17-2018 02:28
04-17-2018 02:28
When I try to write a activity via web API, I get the following error:
{
"errors": [
{
"errorType": "request",
"fieldName": "n/a",
"message": "Either \"activityId\" or \"activityName\" should be present"
}
]
}HTTP Request: https://api.fitbit.com/1/user/-/activities.json
Body:
{
"activityId": 90013,
"manualCalories": 300,
"startTime": "15:00:00",
"durationMillis": 1980000,
"date": "2018-04-09",
"distance": "5.2"
}