{ "opencollection": "1.0.0", "info": { "name": "TrainingPeaks Partners Athlete Events API", "version": "2.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://oauth.trainingpeaks.com/OAuth/Authorize", "accessTokenUrl": "https://oauth.trainingpeaks.com/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Events", "type": "folder" }, "items": [ { "info": { "name": "Get next event", "type": "http" }, "http": { "method": "GET", "url": "https://api.trainingpeaks.com/v2/events/next" }, "docs": "Retrieve the athlete's next upcoming event. Scope events:read." }, { "info": { "name": "Get events by date", "type": "http" }, "http": { "method": "GET", "url": "https://api.trainingpeaks.com/v2/events/:date", "params": [ { "name": "date", "value": "", "type": "path" } ] }, "docs": "Retrieve the athlete's events for a date. Scope events:read." }, { "info": { "name": "Create event", "type": "http" }, "http": { "method": "POST", "url": "https://api.trainingpeaks.com/v2/events", "body": { "type": "json", "data": "{}" } }, "docs": "Create a new event for the athlete. Scope events:write." } ] } ], "bundled": true }