Users

Update macro nutrition goals

post/api/users/macro-goals

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/users/macro-goals
  • Auth
    HTTP bearer

Request body

macrosMacroValuesDto
waterWaterGoalDto
weightWeightGoalDto
reasonstring
updated_by_userboolean

Example request

{
  "reason": "Adjusted based on new weight goal",
  "updated_by_user": true
}

Response

unknown required

Example response

{
  "success": true,
  "message": "Macro goals updated successfully",
  "macros": {
    "calories": 1500,
    "protein": 120,
    "carbs": 150,
    "fat": 50,
    "fiber": 25
  }
}

Changes

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