smartgym_update_routine
Edit an existing routine's name, days, goal, or note. Preview changes with dry_run first, then apply and verify the updated routine on the server.
Instructions
Edit a routine's name, days, goal or note (only the fields you pass; "" clears).
days is comma-separated weekday numbers, 1 = Sunday, 2 = Monday … 7 = Saturday
(e.g. "2,4,6"). A new name must not match another active routine.
dry_run=true (default) shows old → new and sends NOTHING; dry_run=false snapshots the routine, sends the edit, and verifies it on the server.
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 | ||
| name | No | ||
| note | No | ||
| dry_run | No | ||
| routine | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notice | Yes | ||
| changes | Yes | ||
| dry_run | Yes | ||
| routine | Yes | ||
| requests | Yes | ||
| snapshot | Yes |