recipes

Generate recipe suggestions for a patient

post/patients/{patient_id}/recipes/generate-custom-suggestions

Path parameters

patient_idinteger required

Query parameters

contextstring required

Request body

dietary_restrictionsstring[]
enjoyed_foodsstring[]
ingredients_exclude_allstring[]
ingredients_include_allstring[]
ingredients_include_anystring[]
languagestring

The language to generate the recipe in. If no target language is provided, the default is English.

max_ingredientsnumber

The maximum number of ingredients in the recipe. If no maximum number of ingredients is provided, the default is 5.

meal_name'breakfast' | 'lunch' | 'dinner' | 'snack'

The meal type of the recipe being generated.

motivationsstring[]
n_recipesnumber

The number of recipes to generate. If no number of recipes is provided, the default is 1.

other_commentsstring[]
patient_idnumber

The ID of the patient to generate the recipe for. If no patient ID is provided, the default is the current user.

recently_eaten_foodsstring[]
recently_suggested_recipesstring[]
specific_focus_areastring

The specific focus area of the recipe being generated. For example, "increasing protein intake" or "reducing sugar intake".

Response

successful operation

idnumber required

Changes

Changed in 2 of the 15 revisions of this API.112

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ●

      removed the optional property // from the response with the status

      response-optional-property-removed

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added