smartgym_create_program
Create and sync one or more SmartGym routines with warmups, exercises, cooldowns, days, and sets; preview changes with dry-run before sending to all devices.
Instructions
Create one or more routines (a program) on the SmartGym server — all devices get them.
Each routine: name (must not match an active routine), optional days/goal/note, and
three ordered sections — warmup (optional), exercises (= main, required),
cooldown (optional). Exercises are catalog names (fuzzy-matched, deterministic) or
catalog ids, with optional rest_seconds, note and template sets (reps + weight_kg;
omitted = one 1x10 set, flagged). days is comma-separated weekday numbers,
1 = Sunday, 2 = Monday … 7 = Saturday (e.g. "2,4,6"). Validation is all-or-nothing.
dry_run=true (default) returns the plan and sends NOTHING; dry_run=false creates the
routines and verifies them on the server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| routines | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | ||
| notice | Yes | ||
| created | Yes | ||
| dry_run | Yes |