Update a library workout
update_workoutModify an existing library workout by updating its name, sport, folder, or step-by-step structure. Pass only the fields you want to change, using Intervals.icu workout text syntax for the steps.
Instructions
Change a library workout (name, steps, sport, folder). Only the fields you pass are changed.
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 |
|---|---|---|---|
| id | Yes | ||
| day | No | Training plans only: day number in the plan (0 = first day). | |
| name | No | ||
| tags | No | ||
| type | No | Sport, e.g. "Run" or "Ride". | |
| indoor | No | ||
| folder_id | No | Move to this folder or plan. | |
| description | No | The workout steps in workout text syntax. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workout | Yes |