update_workout
Change an existing workout in place: its name, steps, description or pool length. It keeps its id, so dates it is already scheduled on stay scheduled and the watch gets the new version at its next sync. New steps replace the whole old list, and the result carries the steps that were replaced.
Args: workout_id: The workout's id. name: New name. Omit to keep the current one. steps: New step list, in the same shape as when creating a workout, replacing the old one entirely. Omit to keep it. sport: Only 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 | |||