This action logs a workout to your iPhone's Health app. Choose the type of activity, calories burned, duration, and more to customize your workouts.
- API endpoint slug
- ios_health.log_workout
- Filter code method
- IosHealth.logWorkout.skip(string?: reason)
- Runtime method
- runAction("ios_health.log_workout", {})
Action fields
- Label
- Workout type
- Slug
- activity_type
- Required
- true
- Can have default value
- true
- Filter code method
- IosHealth.logWorkout.setActivityType(string: activityType)
- Label
- Duration of workout
- Helper text
- e.g. "60 minutes"
- Slug
- duration
- Required
- true
- Can have default value
- true
- Filter code method
- IosHealth.logWorkout.setDuration(string: duration)
- Label
- Calories burned
- Helper text
- Optional e.g. 225
- Slug
- energy
- Required
- false
- Can have default value
- true
- Filter code method
- IosHealth.logWorkout.setEnergy(string: energy)
- Label
- Distance
- Helper text
- Optional e.g. 25
- Slug
- distance
- Required
- false
- Can have default value
- true
- Filter code method
- IosHealth.logWorkout.setDistance(string: distance)
- Label
- Distance units
- Slug
- distance_units
- Required
- false
- Can have default value
- true
- Filter code method
- IosHealth.logWorkout.setDistanceUnits(string: distanceUnits)
- Label
- Date and time workout started
- Helper text
- Optional and will use current time if blank
- Slug
- start_date
- Required
- false
- Can have default value
- true
- Filter code method
- IosHealth.logWorkout.setStartDate(string: startDate)