Sleep
The Sleep endpoints are used for querying and modifying the user’s general sleep data. Developers can request the following API endpoints when integrating the Sleep data type:
- Create Sleep Goal creates or updates a user's sleep goal.
- Create Sleep Log creates a log entry for a sleep event.
- Delete Sleep Log deletes a user's sleep log.
- Get Sleep Goal retrieves a user's sleep goal.
- Get Sleep Log by Date retrieves a list of a user's sleep log entries for a given date.
- Get Sleep Log by Date Range retrieves a list of a user's sleep log entries for a given date range.
- Get Sleep Log List retrieves a list of a user's sleep log entries before or after a given date.