Event Create - TrainingPeaks/PartnersAPI GitHub Wiki
Allows a coach or athlete to plan events on an athlete’s calendar.
- Resource endpoint: /v2/events
- HTTP Method: POST
- OAuth Scope Required: events:write
- Input:
- The athlete id: Required.
- The event day: Required.
- The event type: Required.
- The event name: Required.
Example:
Testing:
https://api.sandbox.trainingpeaks.com/v2/events
Production:
https://api.trainingpeaks.com/v2/events
Example of how to format your data.
{
"AthleteId" : "54321",
"EventDate" : "2020-06-12",
"EventType" : "RoadCycling",
"Name" : "Twilight Criterium",
"Description" : "Description of the event",
}
Property | Type | Values |
---|---|---|
Athlete ID | int | |
EventDate | DateTime | |
EventType | string | See below for valid types |
Name | string | |
Description | string |
Valid EventTypes:
RoadRunning
TrailRunning
TrackRunning
CrossCountry
Running
RoadCycling
MountainBiking
Cyclocross
TrackCycling
Cycling
OpenWaterSwimming
PoolSwimming
Triathlon
Xterra
Duathlon
Aquabike
Aquathon
Multisport
Regatta
Rowing
AlpineSkiing
NordicSkiing
SkiMountaineering
Snowshoe
Snow
Adventure
Obstacle
SpeedSkate
Other