Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add body fat through fitbit web application

Hi Team,

 

I was trying to add body fat percentage from fitbit web application but unable to do so, the form where the body fat needs to be entered, as a "log" button which seems disabled. After entering the value, when I click on it, I can see that the page is submitted but then, neither I get an error nor it is reflected in the application that it is accepted.

 

Pls help me, a snapshot is taken to show where I had been entering this.

 

 

Log Body Fat.PNG

 

Later I tried to update the records from the backend using API but that also doesn't work for me.

The end point I used is - https://api.fitbit.com/1/user/<userid>/body/log/fat.json

And the message I am passing is - 

{
    "weightLog": {
        "bmi": 23.57,
        "date": "2017-05-05",
        "fat": 14.5,
        "time": "23:59:59",
        "source": "API"
    }
}

The error I am getting is below - 

{
  "errors": [
    {
      "errorType": "validation",
      "fieldName": "fat",
      "message": "Fat is required"
    }
  ]
}

I tried to remove every element of JSON and use only fat, but that also didn't help me to get this error out.

 

Requesting help here. Thanks.

 

Regards,

Ritu.

Best Answer
0 Votes
0 REPLIES 0