goal

Update the goal of the patient

Changed on
put/patients/{patient_id}/goals/{goal_id}

Request

  • Base URL
    https://api.rxfoodapp.com/api
  • URL
    https://api.rxfoodapp.com/api/patients/{patient_id}/goals/{goal_id}
  • Auth
    HTTP bearer

Path parameters

patient_idinteger required
goal_idinteger required

Request body

changestring required
goal_typestring required
meal_slotsstring[] nullable
period'day' | 'week' | 'breakfast' | 'lunch' | 'dinner' | 'snack' | 'meal' required
target_namestring required
target_range_highnumber nullable
target_range_lownumber nullable
target_range_type'above' | 'below' | 'within' nullable
target_valuenumber required

Example request

{
  "change": "increase, decrease",
  "target_name": "vitamin_c_mg"
}

Response

successful operation

changestring required
current_valuenumber required
goal_image_urlstring nullable
goal_typestring required
idinteger required
meal_slotsstring[] nullable
patient_idinteger required
period'day' | 'week' | 'breakfast' | 'lunch' | 'dinner' | 'snack' | 'meal' required
statementstring required
target_display_namestring required
target_namestring required
target_range_highnumber nullable
target_range_lownumber nullable
target_range_type'above' | 'below' | 'within' nullable
target_unitstring nullable
target_valuenumber required

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status