food

Create a new favorite

post/patients/{patient_id}/foods/favorite

Path parameters

patient_idinteger required

Request body

addon_namesstring[] nullable
custom_labelstring nullable

user-defined label to be stored with the favorite.

food_namestring required

food name

notestring nullable

note to be stored with the favorite.

replacement_food_namestring nullable

replacement food as generated by the system

serving_type_labelstring nullable

special label indicating custom servings, such pizza size

serving_type_multipliernumber nullable

multiplier applied to a serving to account for sizing, such as a large pizza when the reference is a small pizza

serving_unit_amountnumber nullable

unit amount in grams per serving

serving_unit_labelstring nullable

unit of measure coinciding with the unit amount

servingsnumber nullable

number of servings to be stored

Example request

{
  "food_name": "pizza",
  "replacement_food_name": "thin crust pizza"
}

Response

successful operation

addon_namesstring[] nullable
carbohydrate_gnumber
custom_labelstring nullable

user-defined label to identify the favorite.

favorite_idnumber required

id of the favorited item

food_namestring required

food name

notestring nullable

note to be stored with the favorite.

replacement_food_namestring nullable

replacement food as generated by the system

serving_type_labelstring nullable

special label indicating custom servings, such pizza size

serving_type_multipliernumber nullable

multiplier applied to a serving to account for sizing, such as a large pizza when the reference is a small pizza

serving_unit_amountnumber nullable

unit amount in grams per serving

serving_unit_labelstring nullable

unit of measure coinciding with the unit amount

serving_unit_label_translationsobject nullable
servingsnumber nullable

number of servings to be stored

similar_itemsstring[]

Example response

{
  "food_name": "pizza",
  "replacement_food_name": "thin crust pizza"
}

Changes

No recorded changes to this endpoint across all 15 revisions of this API.