smartgym_apply_routine
Rewrite a full SmartGym routine in one call by passing ordered warmup, main, and cooldown lists; preview changes with dry_run before syncing.
Instructions
Rewrite a routine in one go (e.g. "week 2 of FB-A").
Each section you pass is the complete ordered list for that section: existing
exercises by exercise_id (optionally with new rest/note/sets), new ones by catalog
name. An existing exercise listed under another section moves there; one you leave
out of a passed section is removed. Omitted sections stay as they are. days is
comma-separated weekday numbers, 1 = Sunday, 2 = Monday … 7 = Saturday (e.g. "2,4,6").
dry_run=true (default) shows the full plan and sends NOTHING.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days: comma-separated weekday numbers, 1 = Sunday, 2 = Monday … 7 = Saturday (e.g. "2,4,6"); "" clears | |
| goal | No | ||
| main | No | ||
| name | No | ||
| note | No | ||
| warmup | No | ||
| dry_run | No | ||
| routine | Yes | ||
| cooldown | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notice | Yes | ||
| changes | Yes | ||
| dry_run | Yes | ||
| routine | Yes | ||
| requests | Yes | ||
| snapshot | Yes |