List sports
list_sportsThe sports of one person (settings/sports rows): yours by default, an athlete's when athlete (usr_… from list_athletes) is passed. Active sports only by default. To plan an event, file a template or filter, cite an entry's sport field (spt_…). Its id (spu_…, the settings row) serves only settings/sports/{id}/activate/ and deactivate/ (with ?athlete=usr_… in the path for an athlete): list the hidden ones with is_active=false to switch one back on. A structured workout (workout tree) needs is_structured_workout_enabled true; any other event takes any listed sport. Call list_zones next for the numbered zones of a (person, sport) couple.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| athlete | No | Athlete public id (usr_…). Omit for your own sports. | |
| is_active | No | Default true: the sports shown in their menus, the ones to plan on. false: only the hidden ones, to reactivate one. |