Use this page
Change workout
Changes a saved workout, or marks a planned one as done.
WRITEupdate_workout
Your assistant uses it when you did a workout it planned, or ask to fix one. What was planned stays beside what you did, and a set you skipped reads as skipped.
Inputs
Section titled “Inputs”| Input | Type | Description |
|---|---|---|
id | string | Required. The id of the workout to change, as list_workouts or create_workout returned it. Up to 100 characters. |
state | string | logged for a workout done; planned only for a plan the person asked to save. One of planned or logged. |
title | string | What the session is called, such as Push day or Legs. Up to 200 characters. |
note | string or null | A new note; null clears it. Up to 10,000 characters. |
startsAt | date-time | When it started, or for a plan when it will, with its UTC offset. |
endsAt | date-time or null | When it ended, with its UTC offset, so its duration reads; leave out when not known, and for a plan. |
timezone | string | Up to 100 characters. |
exercises | array | Replaces every exercise in the workout: pass all it should keep, each with its key, changed or not. 1 to 100 items. |
supersets | array | Names and rests for supersets; one an exercise points at without listing it here is made with neither. Up to 50 items. |
place | string or null | Where it is done: a place id from list_places; null clears it. Up to 100 characters. |
Exercises
Section titled “Exercises”| Input | Type | Description |
|---|---|---|
exercise | string | Required. An exercise id exactly as list_exercises or save_exercise returned it. Up to 100 characters. |
sets | array | Required. One per set, in order, with what was done or, in a plan, what to aim for. A plan's set without figures is filled from last time. 1 to 100 items. |
key | string | Only in update_workout: the key the workout returned for this exercise, so what was planned for it stays beside what was done. Up to 1,000 characters. |
restSeconds | integer | Rest after each set, 0 for none; left out, the app rests 90 seconds. From 0 to 3,600. |
note | string | A line about this exercise, such as a cue or how it felt. Up to 2,000 characters. |
superset | string | The id of the superset this exercise is done in turns with; list its exercises one after another. Up to 100 characters. |
alternatives | array | Up to five exercise ids the person could do instead, such as when a machine is taken, best first; get_exercise_relations suggests them for a place. 1 to 5 items. |
What your assistant is told
Section titled “What your assistant is told”The tool’s own instructions, word for word, as every assistant receives them.
Change a saved workout; only what you pass changes. Mark a planned workout as done with state logged rather than creating it again: without exercises every planned set is saved as done as planned, and with exercises you say what was really done. exercises replaces the whole list, so pass every exercise the workout should keep, each with the key it was returned with, including those that did not change; an exercise without a key is new, and one left out is removed. A planned set the person skipped stays in a logged workout with done false, and reads as skipped, never failed. note null clears the note. Confirm the change only after success.
Use this page
Last updated
