create_manual_activity
Creates a manual Garmin Connect activity from type, start time, distance, and duration, converting km to meters and minutes to seconds for the API request.
Instructions
converts units: distanceKm * 1000 → meters, durationMin * 60 → seconds, before building the request body; startDatetime is NOT routed through formatDate (it's a full local timestamp, not a bare calendar date) and must include milliseconds, e.g. "2026-09-22T10:00:00.000"; omitting them produced a live HTTP 500 ValueInstantiationException from Garmin during verification. Live-verified: the converted summaryDTO.distance/summaryDTO.duration were read back via getActivity and matched the expected meters/seconds exactly (5.5km/30min → 5500m/1800s)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| typeKey | Yes | ||
| timeZone | Yes | ||
| distanceKm | Yes | ||
| durationMin | Yes | ||
| activityName | Yes | ||
| startDatetime | Yes |