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.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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*
Best Answer