Create Fitatu Recipe
create_recipeCreate a Fitatu recipe by providing a name, ingredients, and servings, then receive a recipe ID and details for adding to your meal plan.
Instructions
Creates and confirms a Fitatu recipe from validated products selected with search_food. A non-empty name, at least one ingredient, and a positive whole number of servings are required. Pass preparation instructions as steps with one step per array item so Fitatu displays separate step fields. Ingredient quantities must be positive finite numbers. For custom tags use RECIPE_TAG_USERS_TYPE. Recipes are private unless shared=true. Returns { status, recipeId, details, warnings }; details.measures contains measureId values accepted by add_meal_items, recipeId is canonical, and repeating the same request creates another recipe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Non-empty recipe name after trimming. | |
| tags | No | Complete list of system or custom recipe tags. Omit to create the recipe without tags. | |
| steps | No | Ordered preparation steps without numeric prefixes. Put exactly one step in each string; Fitatu displays every array item as a separate step field. Omit or use [] when no instructions are available. | |
| shared | No | Whether the recipe may be visible in Fitatu's public catalog. Defaults to false (private). | |
| servings | Yes | Positive integer number of portions produced by the recipe. | |
| mealSchema | No | Fitatu meal keys for which the recipe is suggested: breakfast, second_breakfast, lunch, snack, supper. Omit for no suggestions. Use only this declared enum; raw public catalog values returned by get_recipe may not be valid mutation inputs. | |
| ingredients | Yes | Products included in the recipe. Provide at least one validated product/measure selection. | |
| cookingTimeMinutes | No | Non-negative whole cooking time in minutes. Omit or use null when unknown. | |
| preparationTimeMinutes | No | Non-negative whole preparation time in minutes. Omit or use null when unknown. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Fitatu accepted the write and the service confirmed its observable effect. | |
| details | Yes | Canonical recipe details returned by a read-after-write request. | |
| recipeId | Yes | Canonical id for subsequent operations. This is always identical to details.recipeId. | |
| warnings | Yes | Non-fatal write warnings; currently empty for validated recipe creation. |