NameDescriptionTypeAdditional information
diet_id

diet plan id from diet template

integer

Required

meal_id

meal id from diet plan

integer

Required

diet_template_id

diet template id

integer

Required

meal_type_id

selected meal type

integer

Required

add_to_entire_plan

add food to all days in template

boolean

None.

food_name

custom food name

string

Required

amount

amount to eat

decimal number

Required

units

selected unit of food

string

Required

grams

food total grams for given quantity and unit

decimal number

None.

food_time

food time to eat

decimal number

Required

food_time_min

food time in string

string

None.

region

food region

string

Required

opt_meal_food_id

optional meal foodid

integer

None.

is_locked

meals food update in diet plan. user will only see when is it not locked

boolean

None.

comments

any food specific comment

string

None.

meal_type_name

name of meal incase add to entire plan is true.

string

None.

diet_plan_ids

list of diet plan ids to add food in multiple days

Collection of integer

None.