Record a new meal in the tracker system.
Permission | Description |
---|---|
tracker_meals.create | Create tracker meal record |
Name | Type | Required | Description |
---|---|---|---|
tracked_at | string | Yes | Datetime for the meal record |
diet_plan_meal_id | int | No | Diet plan meal ID (if based on a diet plan) |
notes | string | No | Optional notes |
is_cheat | boolean | No | Whether the meal is a cheat meal (default: false) |
protein | int | No | Protein in grams (nullable) |
carb | int | No | Carbs in grams (nullable) |
fat | int | No | Fat in grams (nullable) |
calories | int | No | Calories (nullable) |
<tracker meal resource>
Status | Error Type | Reference |
---|---|---|
422 | Validation Error | Validation error |
401 | Unauthorized | Authentication error |
403 | Forbidden | Permission error |