update_wellness
Record or change an athlete's daily subjective wellness scores or comment in Intervals.icu, updating only supplied fields and creating the day's record if missing.
Instructions
Use only when the athlete asks to record or change subjective wellness scores or the comment of one day.
Writes the wellness record of that day in Intervals.icu (created if missing): only the fields passed are changed; device values (weight, HRV, sleep, resting HR ...) stay untouched. At least one field is required. Scales are integers 1-4 as in the Intervals.icu wellness dialog (labels per parameter). A scale value once set cannot be cleared through the API (null is ignored, 0 rejected): use the web app, so double-check before writing (dry_run shows the request). comments replaces the existing comment: to append, read it with get_wellness_data and send the combined text. Returns the updated record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Day to update, YYYY-MM-DD | |
| mood | No | Mood 1-4: 1=Great, 2=Good, 3=OK, 4=Grumpy | |
| injury | No | Injury 1-4: 1=None, 2=Niggle, 3=Poor, 4=Injured | |
| stress | No | Stress 1-4: 1=Low, 2=Avg, 3=High, 4=Extreme | |
| dry_run | No | true = check and return the exact request, write nothing | |
| fatigue | No | Fatigue 1-4: 1=Low, 2=Avg, 3=High, 4=Extreme | |
| comments | No | Free text; REPLACES the day's comment (no append); empty text is ignored | |
| soreness | No | Soreness 1-4: 1=Low, 2=Avg, 3=High, 4=Extreme | |
| athlete_id | No | Default: the configured athlete | |
| motivation | No | Motivation 1-4: 1=Extreme, 2=High, 3=Avg, 4=Low | |
| clear_comments | No | Empty the day's comment (not together with comments) |