POST
/
update-goal-status
curl --request POST \
  --url http://dolphinflashcards.com/api/update-goal-status \
  --header 'Content-Type: application/json' \
  --data '{
  "userID": "user1"
}'
{
  "goalID-1": {
    "data": {
      "cards_revised_so_far": "0",
      "cards_to_revise": "4"
    },
    "end_date": "30/07/2024",
    "fail_date": "\" \"",
    "status": "in progress",
    "title": "Revise 4 cards by 15/07/2024",
    "type": "Card"
  },
  "goalID-2": {
    "data": {
      "goal_xp": "60",
      "start_date": "15/07/2024",
      "starting_xp": "0"
    },
    "end_date": "30/07/2024",
    "fail_date": " \" \"",
    "status": "in progress",
    "title": "Gain 60 XP by 30/07/2024",
    "type": "XP"
  }
}

Body

application/json

Response

200
application/json
OK

The response is of type object.