Create zones
tp_create_zonesCreate new per-sport zone sets when none exist, specifying sport, calculation method, and threshold. TrainingPeaks computes bands; alerts if zones already exist or method requires a test.
Instructions
Create a NEW per-sport zone set for an athlete that has none for that sport (use tp_update_ftp/hr_zones/speed_zones to change an EXISTING set). Bands are computed by TrainingPeaks' calculator for the chosen method (see tp_get_zone_methods). Returns ZONES_EXIST if the set is already present, or TEST_BASED_METHOD for test-derived methods (Distance/Time) — those are set up via a test in the TP UI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pace | No | Threshold pace for speed, e.g. '4:30/km' / '1:45/100m' | |
| max_hr | No | ||
| metric | Yes | ||
| athlete | No | Target athlete name or ID (coach accounts only). Omit to use your own profile. | |
| distance | No | ||
| threshold | No | FTP watts (power) or LTHR bpm (heartrate) | |
| resting_hr | No | ||
| workout_type | Yes | Sport for the set, e.g. bike/run/swim/xcski | |
| calculation_method | Yes | Method int (see tp_get_zone_methods) |