Goals

Update Goal

Update a goal.

  • goal_id: The ID of the goal to update
  • title: New title (optional)
  • target_value: New target value (optional)
  • current_value: New progress value (optional)
  • min_value: New minimum value (optional)
  • max_value: New maximum value (optional)
  • unit: New unit label (optional)
patch/v1/dev/user/goals/{goal_id}

Path parameters

goal_idstring required

Request body

current_valuenumber nullable

New progress value

max_valuenumber nullable

New maximum value

min_valuenumber nullable

New minimum value

target_valuenumber nullable

New target value

titlestring nullable

New title

unitstring nullable

New unit label

Response

Successful Response

created_atstring date-time required
current_valuenumber required
goal_typestring required
idstring required
is_activeboolean required
max_valuenumber required
min_valuenumber required
target_valuenumber required
titlestring required
unitstring nullable
updated_atstring date-time required

Changes