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

Update Weight log documentation

ANSWERED

In the proces of upgrading the app using the latest API and I noticed a small typo in your documentation

 

https://dev.fitbit.com/docs/body/#get-weight-logs

 

For retrieving weight it says:

GET https://api.fitbit.com/1/user/[user-id]/body/log/weight/[base-date]/[end-date].json

this should be (the date is missing!)

GET https://api.fitbit.com/1/user/[user-id]/body/log/weight/date/[base-date]/[end-date].json

 

Also in your documentation you say "date The date in the format YYYY-mm-dd."

 

It should be "date The date in the format yyyy-MM-dd."

 

Small mistakes but crucial to get it to work.

 

cheers Peter

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Thanks for pointing this out! We've updated the docs accordingly. 

View best answer in original post

Best Answer
0 Votes
7 REPLIES 7

Thanks for pointing this out! We've updated the docs accordingly. 

Best Answer
0 Votes

Hi, I am using this api, but I understand the end-date should be in form 1m, 3m, 1y etc, but only 1m works?

Best Answer
0 Votes

This still dont work?

I used: https://api.fitbit.com/1/user/-/body/log/weight/date/2018-01-30/2018-01-01.json

and it fails, the only version that works is:

https://api.fitbit.com/1/user/-/body/log/weight/date/2018-01-30/1m.json

- and even trying to use 3m etc does not work!

Best Answer
0 Votes

@2mR the url seems incorrect to me

https://api.fitbit.com/1/user/-/body/log/weight/date/2018-01-30/2018-01-01.json

in this url

start date: 2018-01-30

end date: 2018-01-01

 

which kind-a makes no sense.

Best Answer
0 Votes
yes, you are right, small typo, its sjould be end-date 2017, but the point being that it does not tolerate any end date of this format, only “1m” and note even 3m, 1y etc…
best re
Tom

Tjuvholmen alle 21
0252 Oslo, Norway
Tel +47 98 20 48 85
https://rojahn.no

"Det er ikke greit å forstå hvor skoen trykker for den som ikke har den på”
Peer Gynt
Best Answer
0 Votes

 @2mR

the only supported formats are: 1d,7d,1w,1m.

When you enter start date and end date, the difference between start date and end date can't be more than 31 days. Please see more details at our documentation here: https://dev.fitbit.com/build/reference/web-api/body/

Best Answer
0 Votes
Thanks - this solved the problem!!!


Tjuvholmen alle 21
0252 Oslo, Norway
Tel +47 98 20 48 85
https://rojahn.no

"Det er ikke greit å forstå hvor skoen trykker for den som ikke har den på”
Peer Gynt
Best Answer
0 Votes