Description Usage Arguments Examples
The Update Sleep Goal endpoint creates or updates a user's sleep goal and get a response in the in the format requested
1 | update_sleep_goal(token, min_duration)
|
token |
An OAuth 2.0 token |
min_duration |
The target sleep duration is in minutes. |
1 2 3 4 5 | ## Not run:
#Set a new sleep goal(377)
update_sleep_goal(token, 377)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.