Workout Of The Day Get File - TrainingPeaks/PartnersAPI GitHub Wiki

Returns a structured workout file for the specified workout id in the specified format.

The list of workout ids and valid formats for the workout are returned by the /v2/workouts/wod endpoint.

  • Resource endpoint: /v2/workouts/wod/file/{workout id}/?format={format}
  • HTTP Method: GET
  • OAuth Scope Required: workouts:wod
  • Input:
    • The workout id: Required.
    • The requested file format: Required.

Example:

Testing:
https://api.sandbox.trainingpeaks.com/v2/wod/file/123456789/?format=fit

Production:
https://api.trainingpeaks.com/v2/wod/file/123456789/?format=fit

Returns: The workout file in the body of the result, with the header value:

Content-Disposition: attachment; filename="filename.ext"

If the requested format is JSON the workout will return in the body content NOT in a separate file.

See [Workout of the Day Structured Workout File]Workout-Of-The-Day-Structured-Workout-File) and Workout Structure Object for more details.