Create library item
tp_create_library_itemSave a workout template to your TrainingPeaks library for reuse in upcoming training sessions.
Instructions
Save a workout template to a library.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tss | No | ||
| name | Yes | ||
| athlete | No | Target athlete name or ID (coach accounts only). Omit to use your own profile. | |
| structure | No | Interval structure (nested object) | |
| library_id | Yes | ||
| description | No | ||
| sport_type_id | Yes | Sport subtype ID (e.g. 3=Road Bike) | |
| duration_hours | No | ||
| sport_family_id | Yes | Sport ID (e.g. 2=Bike; see tp_get_workout_types) |