# APIs and Microservices Projects - Exercise Tracker error in test case 3

**URL:** <https://forum.freecodecamp.org/t/apis-and-microservices-projects-exercise-tracker-error-in-test-case-3/406402>\
**Category:** General\
**Created:** [June 20, 2020, 10:17pm UTC](https://forum.freecodecamp.org/t/apis-and-microservices-projects-exercise-tracker-error-in-test-case-3/406402 "2020-06-20T22:17:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jojomak13](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jojomak13/32/116089_2.png) [@jojomak13](https://forum.freecodecamp.org/u/jojomak13)\
**Post date:** [June 20, 2020, 10:17pm UTC](https://forum.freecodecamp.org/t/apis-and-microservices-projects-exercise-tracker-error-in-test-case-3/406402/1 "2020-06-20T22:17:54Z")

</div>

I have a problem with the test case number 3

> I can add an exercise to any user by posting form data userId(\_id), description, duration, and optionally date to /api/exercise/add. If no date supplied it will use current date. App will return the user object with the exercise fields added.

and this my response when I add a new exercise

```auto
{
    "userId": "5eee84cb507e891d4edebeaa",
    "description": "test",
    "duration": 45,
    "date": "Sat Jun 20 2020",
    "username": "fcc_test_15926898671"
}

```

my live code if you would test it out: [link](https://boilerplate-project-exercisetracker--jojomak13.repl.co/)

---

<div class="post-metadata">

**Author:** ![Naomi](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/naomi/32/422181_2.png) [@Naomi](https://forum.freecodecamp.org/u/Naomi)\
**Post date:** [June 21, 2020, 1:20am UTC](https://forum.freecodecamp.org/t/apis-and-microservices-projects-exercise-tracker-error-in-test-case-3/406402/2 "2020-06-21T01:20:28Z")

</div>

Hello~!

I believe the test looks for an “\_id” not a “userId”. 🙂

---

<div class="post-metadata">

**Author:** ![jojomak13](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jojomak13/32/116089_2.png) [@jojomak13](https://forum.freecodecamp.org/u/jojomak13)\
**Post date:** [June 21, 2020, 3:17am UTC](https://forum.freecodecamp.org/t/apis-and-microservices-projects-exercise-tracker-error-in-test-case-3/406402/3 "2020-06-21T03:17:20Z")

</div>

Thanks, a lot sir you really made my day, I hope if you edit it in the official example because it is written **userId** not **\_id**

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:49pm UTC](https://forum.freecodecamp.org/t/apis-and-microservices-projects-exercise-tracker-error-in-test-case-3/406402/4 "2021-06-01T18:49:34Z")

</div>

Closed on June 1, 2021, 6:49pm UTC


