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

Badrequest for getting floors timer series data

ANSWERED

Hi 

    when I get floors time series data for one user, I get badrequest error. for other users, it works ok. anyone has any ideas of why.

 

    The return JSON: {"errors":[{"errorType":"validation","fieldName":"resource path","message":"Invalid time series resource path: /activities/floors"}]}

 

thanks

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions
The API will return an error for users who do not have a tracker that can records floors.
See advanced Fitbit statistics and leaderboards at - https://bitstats.net

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2
The API will return an error for users who do not have a tracker that can records floors.
See advanced Fitbit statistics and leaderboards at - https://bitstats.net
Best Answer
0 Votes

It should return 200 or 204 instead of 400. Because the request parameters are valid. So there is no reason to provide 400. If there is no record found, then it should return empty object or 204.

 

Best Answer