import_activity
Upload a local .fit, .gpx, or .tcx file to Garmin Connect as an activity import, with duplicate detection for existing activities.
Instructions
multipart upload to /upload-service/upload/{ext} (extension from filename, must be fit/gpx/tcx) with the load-bearing NK/origin/custom User-Agent headers that make Garmin treat it as an import rather than a device sync; a 409 is re-raised as GarminConnectionError ("Activity already exists (duplicate):...")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to a local .fit, .gpx or .tcx file (~ is expanded) |