---
title: "Set favorite food of the patient"
method: PUT
path: "/patients/{patient_id}/foods/favorite"
tags: ["food"]
---

# Set favorite food of the patient

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

## Path parameters

- `patient_id` integer, required

## Query parameters

- `food_name` string

## Request body

- UpdateFavoriteRequest
  - `addon_names` string[], nullable
  - `custom_label` string, nullable — user-defined label to be stored with the favorite.
  - `favorite_id` number — primary key of the favorite items
  - `food_name` string — 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

---

[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/04eb7a66328a?raw)
