Update Fitatu Meal Item
update_meal_itemUpdate an existing Fitatu meal item by date, meal key, and item ID. Modify quantity, measure, or custom item details and confirm the change in your day plan.
Instructions
Updates and confirms one existing Fitatu meal item selected by its exact date, mealKey, and itemId. PRODUCT and RECIPE quantity or measure changes require a measure belonging to that food definition. For CUSTOM_ITEM entries, only the name, calories, protein, fat, carbohydrates, or eaten flag can be updated; their technical measure fields are immutable. Returns { status: 'confirmed', date, mealKey, itemId } after every requested field is observed in the persisted day plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Day containing the item to update, in YYYY-MM-DD format. | |
| fatG | No | New non-negative fat total in grams. Accepted only for a CUSTOM_ITEM. | |
| name | No | New non-empty name. Accepted only for an existing CUSTOM_ITEM. | |
| eaten | No | Whether Fitatu should mark the item as eaten. | |
| itemId | Yes | Meal item id to update. Use itemId returned by get_day_plan_items. | |
| mealKey | Yes | Meal key containing the item. Use mealKey values returned by get_day_plan_items. Typical keys are breakfast, second_breakfast, lunch, snack, supper, but accounts with renamed or additional meals may use other keys such as dinner. | |
| proteinG | No | New non-negative protein total in grams. Accepted only for a CUSTOM_ITEM. | |
| measureId | No | New measure id for the item. Use measureId values returned by search_food when changing measures. | |
| energyKcal | No | New non-negative calorie total. Accepted only for an existing CUSTOM_ITEM. | |
| carbohydrateG | No | New non-negative carbohydrate total in grams. Accepted only for a CUSTOM_ITEM. | |
| measureQuantity | No | New positive quantity for the item's current or selected measure. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Day where the updated meal item was confirmed. | |
| itemId | Yes | Persisted meal item id to use in later update, move, replace, or remove operations. | |
| status | Yes | The requested mutation was observed in the persisted Fitatu day plan. | |
| mealKey | Yes | Meal containing the confirmed updated item. |