Loki Docs
Tools › Workouts › Update a workout template

Update a workout template

update_workout_templateChanges
What it does
Changes or deletes something you had. Your assistant can ask you to confirm first. Safe to retry: the same call twice changes nothing more.
Permission
Workouts, change workouts:write

What your assistant is told

Replace the contents of an existing workout template — a FULL OVERWRITE: the supplied exercises and sets become the template, and anything you leave out is dropped. Use it only when you are rewriting the whole plan. To change ONE exercise — move it, note it, re-plan its sets — call update_workout_template_exercise instead; it touches nothing you didn't mention, so you don't have to resend the rest of the template and risk losing it.

Parameters

  • idid, requiredTemplate UUID returned by list_workout_templates.
  • nametext, requiredNew name.
  • exerciseslist of object, requiredNew ordered list of exercises with planned sets (replaces the previous set).
  • notestext, optionalOptional new free-text note.
  • positionwhole number, optionalNew sort position.
  • stepUpWeightstrue or false, optionalWhether this workout's weights climb when every working set hit its reps last time. Leave it out for the default — on for a day of the user's program, off for one of their own workouts, because an automatic step would fight a scheme they wrote themselves (5/3/1, waves). Pass true or false to decide it explicitly. This tool is a full overwrite: leaving it out puts the workout back on its default, the same way leaving notes out clears the note.
  • 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.