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

Will there only be one sleep session with "isMainSleep:true" per day?

ANSWERED

Hi all,

 

When I requested sleep data via Fitbit API, I got multiple sleep sessions in a day. Sometimes, the `isMainSleep` field is true. Sometimes, it is false. 

 

Does anybody know if we can have multiple sessions with "isMainSleep:true" in a day?

 

Thanks!

Meng

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @MengL 

 

You will only have one isMainSleep in a 24 hour period.   Typically, the main sleep is the longest sleep period.

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

Hi @MengL 

 

You will only have one isMainSleep in a 24 hour period.   Typically, the main sleep is the longest sleep period.

 

Gordon

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

Thank you!

Meng

Best Answer
0 Votes