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

How do I add sleep log with sleep stages?

The Web API supports sleep stages in the queries, but it seems to not support stages when inserting a sleep log (i.e., the *Add Sleep Log* API only allows specifying startTime, date, and duration). Is there some other way to create a sleep log with sleep stages data?

Best Answer
0 Votes
3 REPLIES 3

Hi @t0ny19 

 

Sleep stages is calculated based on heart rate and movement.  When manually entering a sleep log, this information is typically not available.   Therefore, the behavior you're seeing that a manually created sleep log does not contain sleep stages is correct.

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Thanks for the reply.

 

I'm looking for a way to explicitly set the sleep stages data with the sleep log so that I could sync data from another fitness data supplier (e.g., from Polar or Withings or Samsung Health). Is there no other way? Is there a feature request process for something like this?

 

Thanks,

Tony

Best Answer
0 Votes

Sleep stages is only calculated for the Fitbit devices.   We cannot generate sleep stage data for 3rd party devices.   If the 3rd party device supports sleep stages, then you would need to aggregate the 3rd party sleep stage data separately from the Fitbit data.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes