Add workouts to the library
create_workoutsSave up to 50 reusable workouts to a selected folder or training plan. Check the returned workout_check for warnings and fix them with update_workout.
Instructions
Save reusable workouts in a library folder or plan (up to 50 per call). Check workout_check in the result and fix warnings with update_workout.
Workout text syntax (Intervals.icu): one step per line starting with "- ", e.g. "- 10m Z2 Pace", "- 1.5km 7:00/km Pace", "- 90s 85% Pace", "- 10m Ramp 60-80% HR", "- 5m Z2 HR". Durations: 30s, 90s, 1m30, 10m, 1h. Distances: 400mtr (meters!), 1.5km, 2mi — "400m" means 400 MINUTES. Repeats: a line ending in "Nx" (e.g. "Main set 4x") followed by its steps, then a blank line. Section lines like "Warmup"/"Cooldown" are labels. Text before the duration labels a step ("- Strides 20s Z5 Pace"). Power (rides): "75%" (of FTP), "200w", "150-180w", "Z2". Bpm ranges like "140-150bpm" are NOT supported; use HR zones or % HR.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workouts | Yes | ||
| folder_id | Yes | Target folder or plan (from list_workout_library). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | Yes |