{
  "opencollection": "1.0.0",
  "info": {
    "name": "TrainingPeaks Partners Athlete File 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": "File",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Upload activity file (asynchronous)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.trainingpeaks.com/v3/file",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Upload a completed device/activity file to an athlete's account. Processed asynchronously (synchronous upload deprecated 6/2023). Supported types are .FIT, .TCX, and .PWX. Scope file:write."
        }
      ]
    }
  ],
  "bundled": true
}