Create strength workout
create_strength_workoutBuild a strength workout with named Garmin exercises, sets, reps, and rest, then save it or schedule it to your calendar in one call.
Instructions
Create a strength workout to follow later.
Each exercise becomes a block of sets with a rest between them. Name exercises with Garmin's category and exercise name, which find_exercise gives; an unknown name is rejected with suggestions. For runs, rides and swims use create_endurance_workout; to record a session already done, log_strength_session.
Without schedule_date it is saved, not scheduled. With it, it is put on the calendar in the same call, and the reply carries the schedule_id. If scheduling fails the workout still exists and the error gives its id: schedule that one rather than creating it again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The workout's title. | |
| exercises | Yes | The exercises in order, each a block of sets. | |
| description | No | Notes shown with the workout. | |
| schedule_date | No | If set, the workout is scheduled on this date after creation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| name | No | ||
| sport | No | ||
| updated | No | ||
| workout_id | Yes | ||
| description | No | ||
| schedule_id | No | Set when the workout was just scheduled: what unschedule_workout takes. | |
| scheduled_on | No | Set when the workout was just scheduled: its calendar day. | |
| estimated_duration_s | No |