---
title: "Create a new favorite"
method: POST
path: "/patients/{patient_id}/foods/favorite"
tags: ["food"]
---

# Create a new favorite

`POST /patients/{patient_id}/foods/favorite`

## Path parameters

- `patient_id` integer, required

## Request body

- CreateFavoriteRequest
  - `addon_names` string[], nullable
  - `custom_label` string, nullable — user-defined label to be stored with the favorite.
  - `food_name` string, required — food name
  - `note` string, nullable — note to be stored with the favorite.
  - `replacement_food_name` string, nullable — replacement food as generated by the system
  - `serving_type_label` string, nullable — special label indicating custom servings, such pizza size
  - `serving_type_multiplier` number, nullable — multiplier applied to a serving to account for sizing, such as a large pizza when the reference is a small pizza
  - `serving_unit_amount` number, nullable — unit amount in grams per serving
  - `serving_unit_label` string, nullable — unit of measure coinciding with the unit amount
  - `servings` number, nullable — number of servings to be stored

## Response `200`

successful operation

- FavoriteItemResponse
  - `addon_names` string[], nullable
  - `carbohydrate_g` number
  - `custom_label` string, nullable — user-defined label to identify the favorite.
  - `favorite_id` number, required — id of the favorited item
  - `food_name` string, required — food name
  - `note` string, nullable — note to be stored with the favorite.
  - `replacement_food_name` string, nullable — replacement food as generated by the system
  - `serving_type_label` string, nullable — special label indicating custom servings, such pizza size
  - `serving_type_multiplier` number, nullable — multiplier applied to a serving to account for sizing, such as a large pizza when the reference is a small pizza
  - `serving_unit_amount` number, nullable — unit amount in grams per serving
  - `serving_unit_label` string, nullable — unit of measure coinciding with the unit amount
  - `serving_unit_label_translations` object, nullable
  - `servings` number, nullable — number of servings to be stored
  - `similar_items` string[]

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) · [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) · [OpenAPI document](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/revisions/2991fb51502d?raw)
