Swap an exercise
swap_exerciseUse this when the person asks to swap the exercise in a session. Give the sessionId and slot, and the exerciseKey they chose, or a same-movement one from list_alternatives when they leave it to you. The new exercise brings its own rules, and loads never carry over between exercises. untilWeek null swaps that session only; a week keeps the swap for that day through that program week. Comes back with an Undo. Do not use to move a session; use move_session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | ||
| sessionId | Yes | ||
| untilWeek | No | ||
| exerciseKey | Yes | ||
| idempotencyKey | Yes | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |