add_weigh_in_with_timestamps
Log a Garmin Connect weigh-in with weight value and coupled local/GMT timestamps, deriving omitted GMT from the resolved local instant.
Instructions
same raw-value, no-conversion rule as addWeighIn; the two timestamps are COUPLED: the local instant resolves from dateTimestamp if given (naive strings read as LOCAL time) else from when (defaults new Date()), and gmtTimestamp, when omitted, is derived from THAT resolved instant, never independently from when. Both supplied strings are re-formatted rather than forwarded verbatim (a naive gmtTimestamp is read as UTC)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| when | No | A moment in time, ISO 8601, e.g. 2026-09-28T07:30:00 (local) or with Z/offset | |
| unitKey | No | ||
| weightValue | Yes | ||
| gmtTimestamp | No | ||
| dateTimestamp | No |