Food Restrictions & Diet Labels
Define and manage user-specific food restrictions, intolerances, or dietary exclusions. Ensure meal recommendations and plans respect each user’s unique needs.
Use this feature together with Nutritional Plans and Recipe and Dish Recommendations to generate truly personalized, compliant meal options.
Plan & Token Requirements
Feature available in the following LogMeal Plans:
Analyse
Monitor
Recommend
Custom
Accessible by the following User Types:
⚫ APICompany | 🔴 APIUser | 🔵 APIUserManager
What It Does
Food Restrictions allow you to define what foods, ingredients, or nutrient categories a user cannot consume due to allergies, medical conditions, or preferences. These restrictions can be automatically applied when generating meal recommendations, nutritional plans, or dish suggestions, ensuring safe and personalized outputs.


When to Use It / Outcomes
- You want to exclude allergens or disliked foods from user recommendations.
- You need to enforce medical dietary rules (e.g., low sodium, gluten-free, lactose-free).
- You manage large user groups with specific restrictions (e.g., vegan, halal, diabetic).
- Output: JSON confirming restriction creation/update/deletion or a list of all restrictions defined per user.
Feature-Specific Details
- Restriction types: Ingredients, dishes, allergens, nutrient-based thresholds, or tags (e.g., “no pork”, “low sodium”, “avoid sugar”).
- Integration: restrictions are respected in Meal Recommendations, Nutritional Plans, and Goal Adjustments.
- Personalization: each restriction is stored per user and can be updated at any time.
- Localization: all restriction labels and nutrient names can be localized.
Related Endpoints
Use the following endpoints to create, list, and manage food restrictions:
- GET /profile/getUserProfileInfo → 🔴 Retrieve a user’s profile, including current restrictions and preferences.
- GET /managers/getUserProfileInfo/{userId} → ⚫ 🔵 Retrieve profile information for a specific managed user.
- POST /profile/modifyUserProfileInfo → 🔴 Add or modify user food restrictions directly within the user profile.
- POST /managers/modifyUserProfileInfo/{userId} → ⚫ 🔵 Add or modify restrictions for managed users.
Typical Workflow
- Retrieve current restrictions: call GET /profile/getUserProfileInfo to list a user’s active restrictions.
- Add or update restrictions: update preferences via POST /profile/modifyUserProfileInfo or the manager equivalent.
- Validate meal compatibility: the system automatically filters meals in Recipe Recommendation and Nutritional Plans.
Updated about 11 hours ago