Recent
Recommendations
Webhooks
Service
X (Twitter)
Service
YouTube
Service
Discord
Service
Google Sheets
Service
MyQ
Service
Gmail
Service
Instagram
Service
See all results
Explore
Plans
Log in
Get started
Mobile menu
Close menu
Back
iOS Health
Log sleep
This action logs sleep to your iPhone's Health app.
Developer info
API endpoint slug
ios_health.log_sleep
Filter method
IosHealth.logSleep.skip(string?: reason)
Runtime method
runAction("ios_health.log_sleep", {})
Action fields
Sleep duration
Text input > Other
Label
Duration of sleep
Helper text
e.g. "1 hour" or "90 minutes"
Slug
sleep_duration
Required
false
Can have default value
true
Filter method
IosHealth.logSleep.setSleepDuration(string: sleep_duration)
Asleep at
Text input > Other
Label
Date and time sleep started
Helper text
e.g. "Today at 9pm" or "In two hours" or "06/21/2017"
Slug
asleep_at
Required
true
Can have default value
true
Filter method
IosHealth.logSleep.setAsleepAt(string: asleep_at)
Date sleep ended
Text input > Other
Label
Date and time sleep ended
Helper text
Optional e.g. "Tomorrow at 9am" or "In eight hours" or "06/22/2017"
Slug
date_sleep_ended
Required
false
Can have default value
true
Filter method
IosHealth.logSleep.setDateSleepEnded(string: date_sleep_ended)
Applets using this Action
Log sleep to iOS Health from a Note widget entry
by
IFTTT
7.61k