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

sleep goal returns unexpected response

I followed the documentation for retrieving a user's sleep goal (v1.2) here: https://dev.fitbit.com/reference/web-api/sleep/#get-sleep-goal

 

Everything had previously been working fine using the resulting goal.minDuration field, but recently I found that one user is getting back a different response that doesn't match the documentation - it includes fields goal.bedtime and goal.wakeupTime and excludes the goal.minDuration field.  I would expect this change to require a new version of the sleep goal api since it is not additive/breaks the 1.2 contract.

 

Anyone else running into issues with this?

Best Answer
0 Votes
0 REPLIES 0