Workouts Object - TrainingPeaks/PartnersAPI GitHub Wiki

Workout Object Properties

Example:

{
	"AthleteId": 1234567,
	"CadenceAverage": 81,
	"CadenceMaximum": 122,
	"Calories": 742,
	"Completed": false,
	"Distance": 39647.4609375,
	"ElevationAverage": 1603.8306884765625,
	"ElevationGain": 313.0,
	"ElevationLoss": 306.0,
	"ElevationMaximum": 1735.0,
	"ElevationMinimum": 1548.60009765625,
	"Energy": 742.105,
	"HeartRateAverage": 153,
	"HeartRateMaximum": 178,
	"HeartRateMinimum": 90,
	"IF": 0.9356240333684082,
	"Id": 1234567890,
	"NormalizedPower": 187.0,
	"PowerAverage": 167,
	"PowerMaximum": 524,
	"StartTime": "2014-04-15T12:57:59",
	"TempAvg": 15.8412943,
	"TempMax": 20.0,
	"TempMin": 14.0,
	"TotalTime": 1.2443747520446777,
	"TssActual": 108.16,
	"TssCalculationMethod": "Power",
	"VelocityAverage": 8.850000381469727,
	"VelocityMaximum": 19.80699920654297,
	"WorkoutDay": "2014-04-15T00:00:00",
	"WorkoutType": "Bike"
}

For Basic and Premium Athletes

Property Type Units Notes
AthleteId int Unique athlete identifier
Completed bool
Description string Returned only when includeDescription is set to true
Distance float meters
DistancePlanned float meters
Id long Unique workout identifier
LastModifiedDate datetime Date/Time, Timestamp based on Mountain time
PreActivityComment string
StartTime datetime Date/Time, local time
StartTimePlanned datetime Date/Time, local time
Structure json string Workout Structure Object Used only for POST/PUT method. This will be empty for GET methods. To get structure, refer to this section in FAQ
Title string Max of 500 characters
TotalTime float decimal hours
TotalTimePlanned float decimal hours
WorkoutDay datetime Date, local time
WorkoutFileFormats string array an array of supported export formats for this workout
WorkoutType string swim, bike, run, walk, mtb, xc-ski, rowing, brick, x-train, race, day off, strength, custom, other
Url string (read-only) Direct URL to the workout. If opened in mobile device with TrainingPeaks app, workout should be opened in the app.

Additional Properties For Premium Athletes

Property Type Units Notes
CadenceAverage int RPM/SPM
CadenceMaximum int RPM/SPM
Calories int kcals
CaloriesPlanned int kcals
ElevationAverage float meters
ElevationGain float meters
ElevationGainPlanned float meters
ElevationLoss float meters
ElevationMaximum float meters
ElevationMinimum float meters
Energy float kilojoules
EnergyPlanned float kilojoules
Feeling int scale of 0 to 10 1:strong - 3 - 5:normal - 7 - 9:weak
HeartRateAverage int bpm
HeartRateMaximum int bpm
HeartRateMinimum int bpm
IF float
IFPlanned float
NormalizedPower float watts
NormalizedSpeed float m/s
PowerAverage int watts
PowerMaximum int watts
Rpe int Rated perceived exertion scale scale of 1 to 10
Tags string array an array of tags for this workout
TempAvg float celsius
TempMax float celsius
TempMin float celsius
TorqueAverage float Nm
TorqueMaximum float Nm
TssActual float
TssCalculationMethod String Undefined(or manual entry), Power, Running, Swimming, HeartRate, Trimps
TssPlanned float
VelocityAverage float m/s
VelocityMaximum float m/s
VelocityPlanned float m/s

Additional Properties For Coaches

Property Type Units Notes
Hidden bool Only available to coaches
Locked bool Only available to coaches