create_workout
Build a structured Rouvy workout in a rider's library from % FTP steady, ramp, or free-ride steps with optional cadence ranges and repeats, saved private by default and returned as stored.
Instructions
Create a Workout in the rider's Rouvy library, only when they ask for one. Steps are steady, ramp or free ride, in % FTP (use get_workout's rider_ftp_w to convert watts), each with an optional cadence range; repeat a block with a repeat Step. Private unless the rider asks for public. Returns the saved Workout as Rouvy has it. If it says the outcome is unknown, call list_workouts before trying again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cues | No | Text Cues shown during the Workout. | |
| name | Yes | 1–200 characters. | |
| tags | No | Training effects, at most 3. | |
| steps | Yes | The Steps in order, at least 30 s in all. A repeat is flattened: Rouvy stores and returns flat Steps. | |
| route_id | No | The route to ride it on, as get_workout returns it. Default: Rouvy's suggested route. | |
| visibility | No | private (the default), or public only when the rider asks. | |
| description | No | Free text. |