tp_update_library_item
Update an existing workout template in TrainingPeaks using its library and item IDs. Modify key details like name, description, duration, structure, or training stress score.
Instructions
Edit a workout template.
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": {
"library_id": "<library_id>",
"item_id": "<item_id>"
},
"name": "tp_update_library_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tss | No | ||
| name | No | ||
| athlete | No | Target athlete name or ID (coach accounts only). Omit to use your own profile. | |
| item_id | Yes | ||
| structure | No | ||
| library_id | Yes | ||
| description | No | ||
| duration_hours | No | ||
| workout_type_id | No | Sport/workout type: 1=swim, 2=bike, 3=run, etc. Sets the sport on templates saved without one. | |
| workout_sub_type_id | No |