07-26-2024 06:17
07-26-2024 06:17
Hi,
We are integrating Fitbit Web API into the Android app. We have a query regarding updating the Food Log using Update Food Log API.
When updating the Food log using the logged ID, it returns the below error.
09-09-2024 13:17
09-09-2024 13:17
Hi @bhavdip
I didn't have any problems when I tested it. Here are the queries I used to create the food log and edit it.
Create Food Log
Edit Food Log
https://api.fitbit.com/1/user/-/foods/log/<logId>.json?mealTypeId=1&unitId=304&amount=3
If this doesn't work for you, please provide the instructions you used to create the food log, and then the endpoint used to edit it. Based on the error, it seems like the Food Log didn't have a food item listed. *shrugs*