Is there a way to add Hydration Data to a Fit File

Hi All

I have my own app to track some data like my fluid intake and blood pressure.

Currently I sync this data to Google Fit, but as i have now switched from Huawei to Garmin Products I'd like to move/import all possible data to Garmin Connect.

I started to work with the FIT SDK and was able to add Blood Pressure values to a Fit file.

Next step here will be to automatically upload it, and not having to use the web interface...

Now, I'd like to add Hydration data as well, but I can not manage to find a working solution.

If my research is right, it should be possible to use a EventMesg and add the Hydration via Field value.

I hope, that someone can give me a hint, or has an example.