Plan training for a race
plan_for_raceUse this when the user names a race they are training for, for example "IRONMAN 70.3 Barranquilla", "I signed up for the half ironman in Cartagena" or "Chicago Marathon". It finds the race in Phorme's race listings (name, date, city and the race's own page), counts the weeks to race day, and returns the week of Phorme's plan for that kind of race that lines up with race day, with sets, reps, paces, coach notes and a demo link for each exercise. For a triathlon (IRONMAN 70.3, 5150, full) it is swim, bike and run in one plan, with efforts until the athlete's swim and bike tests are in. When the organiser has given them, the race's own logistics come with it (venue, where to pick up the race packet, airport, official hotels from the organiser), with the page and date they were read. It reads only and changes nothing. If the race is not listed it says so; never guess a race date. Do not use it for injury rehab or nutrition.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| race | Yes | The race as the user named it, for example "IRONMAN 70.3 Barranquilla". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| race | Yes | The race as listed: name, city, country, on (YYYY-MM-DD, null when not yet published), url (the race's own page), registration, and logistics: the race's own venue, packet_pickup, airport, getting_there, hotels (up to 6 official hotels, each name, url and note), course_url, athlete_guide_url, source_url and checked_on, as the organiser listed them, or null. | |
| brain | No | The Phorme coaching brain the plan follows: name, coach and how_it_trains. | |
| limits | Yes | What this plan does not cover and where its dates come from. Tell the user. | |
| program | No | The plan: title, weeks and days_per_week, and its summary. | |
| days_out | No | ||
| sessions | Yes | The sessions of that week, each with a title and exercises. | |
| starts_on | No | When the race is further off than the plan, the day the plan's first week starts. | |
| weeks_out | No | ||
| week_number | No | The week of the plan these sessions are. |