Favorite Meals

Create a favorite meal bundle

post/api/favorite-meals

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/favorite-meals
  • Auth
    HTTP bearer

Request body

namestring required
favorite_type'bundle' | 'single_food'

Set 'single_food' to save a one-tap reusable item (items[] must have exactly one entry). Omit or 'bundle' for a named multi-item meal.

meal_numbernumber

1=breakfast, 2=lunch, 3=dinner, 4-6=snack

meal_type'breakfast' | 'lunch' | 'dinner' | 'snack'

Example request

{
  "name": "Morning Yogurt Bowl",
  "meal_number": 1,
  "meal_type": "breakfast",
  "items": [
    {
      "food_name": "Chobani 0% Plain Greek Yogurt",
      "serving_size": "1 cup",
      "description": "non-fat, plain",
      "calories": 130,
      "protein": 23,
      "carbs": 9,
      "sugar": 6,
      "sodium": 75,
      "fatsecret_food_id": "12345",
      "serving_id": "67890",
      "brand": "Optimum Nutrition",
      "barcode": "818290014894",
      "notes": "Mixed with cold water, two scoops",
      "serving_qty": 30,
      "serving_unit": "g"
    }
  ]
}

Response

Favorite created

Changes

No recorded changes to this operation across all 34 revisions of this API.