---
title: "Set or change this patient's rating for a recipe"
method: PUT
path: "/patients/{patient_id}/recipes/{recipe_id}/rating"
tags: ["recipes"]
---

# Set or change this patient's rating for a recipe

`PUT /patients/{patient_id}/recipes/{recipe_id}/rating`

One rating per patient per recipe; sending again replaces it. The patient must have logged the recipe, or one of its variants, first.

## Path parameters

- `patient_id` integer, required
- `recipe_id` integer, required

## Request body

- PutRecipeRatingRequest
  - `rating` integer, required

## Response `200`

successful operation

- RecipeRatingSummaryResponse
  - `family` RecipeRatingAggregate
    - `average` number, nullable
    - `count` integer
  - `family_includes_other_recipes` boolean — True when the family average covers recipes beyond this one, including private copies made by other patients. Ratings on those copies count towards the family score and no rater is identified. Present so a client never labels the family number as the rating of this exact recipe.
  - `family_recipe_count` integer — How many recipes the family average pools. Greater than 1 means the score is not this recipe alone.
  - `family_root_recipe_id` integer
  - `patient_rating` integer, nullable — This patient's own rating, if any.
  - `recipe` RecipeRatingAggregate
    - `average` number, nullable
    - `count` integer

## Changes

- **2026-09-15** `8d4f658e79b1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/changes/patients/:patient_id/recipes/:recipe_id/rating/put.md)

---

[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/081a2697c0f1?raw)
