07-26-2024 06:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-26-2024 06:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Response: {"errors":[{"errorType":"request","fieldName":"n/a","message":"Food log entry without food could not be updated."}]}
Can you please suggest, What we are missing in the request URL?

09-09-2024 13:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



09-09-2024 13:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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*
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

