log_food
Add a food serving to a Garmin Connect daily nutrition log by providing date, food ID, and serving ID. Requires Garmin Connect+ and meal setup.
Instructions
Requires a Garmin Connect+ subscription (check with has_connect_plus). PUTs /nutrition-service/food/logs with one REGULAR_LOG item and returns the whole day's log. FoodLogInput = {date, foodId, servingId, servings? = 1, time?, meal?, source? = "GARMIN", regionCode?, languageCode?}. Pass the catalogue food's source/regionCode/languageCode for a search result. Needs a mealId, which only exists after Garmin's nutrition setup in the app (400 mealId must not be null otherwise; this method throws a clearer error first). The meal is the named one, else the one whose window holds time, else SNACKS; with a meal and no time it picks a time that…
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |