create_custom_food
Create a custom food in Garmin Connect with per-serving calories and nutrients, then use the returned IDs to log it. Requires Connect+.
Instructions
Requires a Garmin Connect+ subscription (check with has_connect_plus). A PUT, not a POST, to /nutrition-service/customFood; CustomFoodInput = {name, calories, servingUnit? = "G", servingSize? = 100, brand?, carbs?, protein?, fat?, fiber?, sugar?, saturatedFat?, transFat?, sodium?, cholesterol?, potassium?, calcium?, iron?, vitaminD?} per ONE serving, absolute amounts (not %DV); numbers are sent as strings, as Garmin's own client does. Returns the stored food with the foodId/servingId logFood takes. Needs Connect+
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |