Update program
update_programUpdates an existing program. Use when the user wants to set duration, workouts per week, or edit program metadata. When updating, provide full program data (goal_ids, workout_ids, visibility, difficulty) from get_team_program and merge your changes.
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": {
"program_id": "<program_id>"
},
"name": "update_program"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| team_id | No | ||
| goal_ids | No | ||
| difficulty | No | ||
| program_id | Yes | ||
| visibility | No | ||
| description | No | ||
| workout_ids | No | ||
| duration_in_weeks | No | ||
| workouts_per_week | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _viewType | Yes |