dambel

دمبل

shevron
ورود | ثبت نام

API Docs / tracker / meals / create



POST /api/v1/tracker/meals

Record a new meal in the tracker system.


Permissions

PermissionDescription
tracker_meals.createCreate tracker meal record

Request Body Parameters

NameTypeRequiredDescription
tracked_atstringYesDatetime for the meal record
diet_plan_meal_idintNoDiet plan meal ID (if based on a diet plan)
notesstringNoOptional notes
is_cheatbooleanNoWhether the meal is a cheat meal (default: false)
proteinintNoProtein in grams (nullable)
carbintNoCarbs in grams (nullable)
fatintNoFat in grams (nullable)
caloriesintNoCalories (nullable)

Response

201 Created

<tracker meal resource>

Error Responses

StatusError TypeReference
422Validation ErrorValidation error
401UnauthorizedAuthentication error
403ForbiddenPermission error

footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube