add_hydration_data
Log daily water intake in millilitres for a given date. Negative values subtract from the running total, letting you correct an over-log or zero out the day.
Instructions
Add a hydration entry for a date.
Entries accumulate: logging 500 then 250 leaves the day at 750. A NEGATIVE value_in_ml subtracts, which is how an over-log is corrected — verified live.
A day cannot go below zero: Garmin answers a further subtraction with "Daily hydration is already at 0 and cannot be reduced." There is no delete for hydration in the Garmin API, so zeroing a day is as close to removing it as the platform allows — the entry stays, reading 0 mL.
Args:
value_in_ml: Amount of liquid in millilitres. Negative subtracts
from the day's running total.
date: Date in YYYY-MM-DD format. (Named to match
get_hydration_data; the argument was once called cdate.)
timestamp: Timestamp in YYYY-MM-DDThh:mm:ss.sss format
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| timestamp | Yes | ||
| value_in_ml | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |