icu_apply_sport_settings
Apply current sport zone settings to every past activity, correcting historical analysis after wrong settings. Updates HR thresholds for sports with HR zones while preserving FTP and other stored thresholds.
Instructions
Overwrite the zones on EVERY past activity of this sport with the current settings' zones.
No date range: all matching activities are rewritten. FTP and other thresholds stored on past activities are kept; for sports with HR zones, LTHR and max HR are updated. Not needed after update_sport_settings — new values already apply to activities from now on, and past ones keep the settings they were analysed with. Use only to correct wrong settings across the whole history. For selected activities or a date range, tell the user to use Update zones in the Intervals.icu activity list view (not in the API).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport_id | Yes | ID of the sport settings to apply | |
| athlete_id | No | Athlete ID (for coaches managing multiple athletes) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |