Loki Docs
Tools › Workouts › Update the training program

Update the training program

update_programChanges
What it does
Changes or deletes something you had. Your assistant can ask you to confirm first.
Permission
Workouts, change workouts:write

What your assistant is told

Change the user's existing training program WITHOUT rebuilding it: rename it, reorder its days, add or remove a day, pause or resume it, start it again from day 1, or skip to the next day. Every argument is optional and only what you pass changes — this is the tool to reach for, not set_program, which replaces the whole program (archiving it, resetting how long it has been followed). templateIds is the FULL ordered list of days: a workout you leave out stops being a day and goes back to the user's own workouts; it is never deleted. Fails when the user follows no program — call set_program to give them one. Confirm the change with the user first.

Parameters

  • nametext, optionalNew program name, e.g. "Upper / Lower". Omit to leave it.
  • templateIdslist of id, optionalThe days as template UUIDs in rotation order (day 1 first) — the WHOLE list. Omit to leave the days alone.
  • statustext, optional"paused" to stop offering the next day on Home (the program and its days stay), "active" to resume where it left off. Omit to leave it.
  • restarttrue or false, optionalTrue to start the rotation again from day 1. Keeps every logged set; only the "what's next" clock moves.
  • skiptrue or false, optionalTrue to skip the day that is up next and serve the one after it. Spent as soon as a workout from the program is finished.
  • clientHandletext, optionalOptional client_handle from list_clients to run this tool against a coached client's data instead of your own. Omit (or pass null) for your own data — the legacy default.