health icon indicating copy to clipboard operation
health copied to clipboard

[bug] Weight API: `bodyfat` and `measurement` are set to `0` on update

Open cyroxx opened this issue 10 months ago • 2 comments

Steps to reproduce

  1. Create (POST) a weight record via the API with bodyfat and measurement set to null.
  2. Verify that in the Health app, this is actually created with bodyfat and measurement set to null.
  3. Update (PUT) that same weight record via the API with bodyfat and measurement set to null.

Expected behavior

bodyfat and measurement should still be null after the update.

Actual behavior

bodyfat and measurement were set to 0 (zero) after the update.

Health app version

2.2.2

Additional info

No response

cyroxx avatar Apr 02 '24 02:04 cyroxx

This is somewhat related to #146.

cyroxx avatar Apr 02 '24 02:04 cyroxx

Could you let me know how you post the data?

I get CSRF check failed at every try

maxi1134 avatar Aug 06 '24 17:08 maxi1134