dambel

دمبل

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

API Docs / tracker / meals / update



PUT /api/v1/tracker/meals/{tracker-meal-id}

Update a meal record in the tracker system.


Permissions

PermissionDescription
tracker_meals.updateUpdate tracker meal record

Request Body Parameters

NameTypeRequiredDescription
tracked_atstringNoDatetime 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)

All parameters are optional. If omitted, they will not be updated. You can set them to null if desired.


Response

200 OK

<tracker meal resource>

Error Responses

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

footer wave
logo

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

LinkedinInstagramXYoutube