Create availability
tp_create_availabilityMark a date range as unavailable for training, optionally keeping certain sports available. Returns an availability ID for later deletion.
Instructions
Mark a date range as unavailable for training (or limited to certain sports). limited=false means fully unavailable; with limited=true, sport_types lists the sports that REMAIN available. Returns availability_id, needed for tp_delete_availability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| athlete | No | Target athlete name or ID (coach accounts only). Omit to use your own profile. | |
| limited | No | ||
| end_date | Yes | YYYY-MM-DD | |
| start_date | Yes | YYYY-MM-DD | |
| description | No | Optional short label shown on the calendar entry | |
| sport_types | No | If limited, sports that REMAIN available — names (e.g. 'Run') or TP sport-type ids |