Routes Post - TrainingPeaks/PartnersAPI GitHub Wiki
Routes
Saves the supplied route file to an athlete's account.
- Resource endpoint /v2/athletes/{athlete-id}/routes
- HTTP Method: POST
- OAuth Scope Required: routes:write
- Input:
- Route Request Object (see below)
Example:
Testing:
https://api.sandbox.trainingpeaks.com/v2/athletes/12345/routes
Production:
https://api.trainingpeaks.com/v2/athletes/12345/routes
Request Body:
{
"Name": "Mountain Trail",
"Description": "An awesome mountain trail.",
"FileName": "mtntrail.gpx",
"FileData": "<base64 encoded file data>"
}
| Property | Type | Units | Notes |
|---|---|---|---|
| Name | string | ||
| Description | string | ||
| FileName | string | ||
| FileData | string | Base64 encoded file content |
Returns:
{
"OwnerPersonId": 0,
"WarningMessage": null,
"Name": "Mountain Trail",
"FileName": "mtntrail.gpx",
"Description": "An awesome mountain trail."
}