Correct a logged set
update_setCorrect a specific set's metrics (weight, reps, RIR, etc.) by session, exercise, and set number; returns the updated set or null if not found.
Instructions
Fix a key metric of a single set, located by session + exercise + set_number.
Allowed patch keys: weight_kg, reps, rir, rpe, tempo, rest_sec, duration_sec, distance_m,
is_per_side, completed, notes, type. occurrence (1-based) picks which instance when the
exercise appears more than once in the session. Returns the updated set, or null if none.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | ||
| occurrence | No | ||
| session_id | Yes | ||
| set_number | Yes | ||
| exercise_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |