calculate_workout_program
Recalculate edited workout programs to update metrics like duration, distance, and training load, returning a program ready for scheduling updates.
Instructions
Recalculate a workout program after editing its exercises.
This calls Coros /training/program/calculate and returns the calculated metrics plus a copy of the supplied program with derived fields such as duration, estimated distance, training load, and exerciseBarChart applied. Feed the returned program into update_scheduled_workout when its exercises changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| program | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||