Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create meal API returns 400

Hey,

I'm trying to use the create meal API in order to create a meal and I'm having issues even running the example from the docs:

https://dev.fitbit.com/build/reference/web-api/food-logging/

GET to the following URL works (return empty list)

but POST with this data returns 400 with no explanation why. 

that's the POST data (tried also with integers).

 

{'Description': 'Typical sunday brunch',
'mealFoods': [{'amount': "2.00", 'foodId': "80851", 'unitId': "111"}],
'name': 'Sunday Brunch'}

 

 

Best Answer
1 REPLY 1

Hi @Safo 

 

I can reproduce this problem, so I've created a case 31008487 for investigation.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes