update_garmin_workout
Replace an existing Garmin workout's entire contents—name, sport, steps, pool settings—keeping its ID. Fetch the current workout first to avoid dropping omitted fields.
Instructions
Replace the entire contents (name, sport, steps, pool settings) of an existing workout, identified by workoutId, keeping its id. This is a full overwrite, not a partial patch - fields you omit are dropped. Call get_garmin_workout first to see the current contents before changing them. If no valid session exists, returns a message asking you to run authenticate_garmin rather than throwing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workout name, shown in Garmin Connect and on the device. | |
| sport | Yes | Sport for this workout: running, cycling, or swimming. Governs which target types apply and whether stroke/equipment/poolLength are used. | |
| steps | Yes | The ordered list of steps and repeat blocks that make up the workout, in the order they should be performed. | |
| workoutId | Yes | The numeric Garmin workout id, as returned by create_garmin_workout or listed by list_garmin_workouts. | |
| poolLength | No | Swimming only - pool length for this workout, e.g. 25. Only valid when sport is 'swimming'. | |
| poolLengthUnit | No | Swimming only - unit for poolLength. Defaults to 'm' when poolLength is given without a unit. |