tp_create_library_item
Save a workout template to a library for reuse in future training plans. Define sport, duration, and interval structure to build a reusable resource.
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) |