Enroll in a catalog training plan
enroll_training_planEnroll an athlete in an existing catalog training plan, once the athlete has confirmed the plan and start date. Side effects: every workout is scheduled on the athlete's calendar from start_date, the plan becomes their primary plan, a Garmin workout sync is queued when the athlete has Garmin connected, and when a coach enrolls an athlete the athlete gets an in-app notification. Repeating it changes nothing: an existing enrollment returns its plan_instance_id with already_enrolled=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"athlete_id": "<athlete_id>",
"training_plan_id": "<training_plan_id>",
"start_date": "<start_date>"
},
"name": "enroll_training_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| athlete_id | Yes | The athlete's user id: get_current_user's athlete_id for the connected account, or an id from get_coach_athletes or find_athlete. | |
| start_date | Yes | First day of the plan, YYYY-MM-DD. | |
| training_plan_id | Yes | A catalog training_plan_id from recommend_training_plans. | |
| long_run_preference | No | Long-run day; omit to keep the plan's own long-run day. | |
| training_days_per_week | No | Training days per week, 2-7. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | No | ||
| message | No | ||
| privacy | No | Present when the athlete's settings withhold data. | |
| warnings | No | ||
| next_step | No | What can be done next, for example after a failure. | |
| athlete_id | No | ||
| start_date | No | ||
| next_cursor | No | Reads the next page; null on the last page. | |
| reason_code | No | ||
| total_weeks | No | ||
| user_content | No | Fields in this result that people wrote. | |
| weeks_returned | No | ||
| already_enrolled | No | ||
| plan_instance_id | No | ||
| training_plan_id | No | ||
| truncated_fields | No | Lists cut to fit one response: rows returned and total. | |
| generated_content | No | Fields in this result that NexRex's AI wrote. | |
| session_definitions | No | Sessions that several rows of this result share by session_ref. | |
| content_block_fields | No | Column names of every content_blocks row, nested blocks rows included. |