update_workout
Change an existing workout's name or steps in place, keeping its ID and scheduled dates so the watch syncs the new version. Use it to retune paces without deleting and recreating sessions.
Instructions
Change an existing workout in place: its name, its steps, or both.
The workout keeps its id, so any dates it is already scheduled on stay
scheduled and the watch picks up the new version at the next sync. This is
how a plan adapts: retune the paces on next week's sessions rather than
deleting and recreating them. Give steps in the same shape create_workout
takes; leave it out to change only the name or description.
New steps replace the old list entirely, so to change part of a workout (one pace, the recoveries, the cool-down) read it with get_workout first and send back every step, changing only what the user asked for. The answer carries the steps it replaced, so say exactly what changed.
Args: workout_id: The workoutId from get_plan, list_workouts or create_workout. name: New name. Omit to keep the current one. steps: New step list, replacing the old one entirely. Omit to keep it. sport: Only needed with steps, and only to change the sport. description: New note. Omit to keep the current one. pool_length_meters: For a swim, a new pool length. Omit to keep it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| sport | No | ||
| steps | No | ||
| workout_id | Yes | ||
| description | No | ||
| pool_length_meters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||