# Examples vs Requests - adding mock responses to an existing collection

**URL:** <https://community.postman.com/t/examples-vs-requests-adding-mock-responses-to-an-existing-collection/8115>\
**Category:** Help Hub\
**Tags:** bootcamp\
**Created:** [October 1, 2019, 11:48pm UTC](https://community.postman.com/t/examples-vs-requests-adding-mock-responses-to-an-existing-collection/8115 "2019-10-01T23:48:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 2, 2019, 8:59am UTC](https://community.postman.com/t/examples-vs-requests-adding-mock-responses-to-an-existing-collection/8115/2 "2019-10-02T08:59:09Z")

</div>

Hey @dan1,

Welcome to the Community and thank you for the question 🏆

I think I’m following you but correct me if this is not the case - when you created the Mock Server you created `1` example for each of the `2` different routes (`/hello` and `/goodbye`)

 ![54](https://us1.discourse-cdn.com/getpostman/original/3X/4/d/4d7a2473fae61a8a14e3a70c5128f13af5aee3b3.png)

That would mean that each request in your Collection would have a single example each, rather than 2 examples on a single route.

 ![28](https://us1.discourse-cdn.com/getpostman/original/3X/4/5/4583f3ba29fb9d4e7a6faf16d47ade04217b615f.png)

The first `Example` has been named as `Default` but this can be changed to anything you what by clicking on the name in the `Examples` dropdown menu.

 ![32](https://us1.discourse-cdn.com/getpostman/original/2X/b/b56f8b645821d26d5f23a083f29e198f945b3501.png)

The `Mock Creation` flow is different from the single `Add Request` flow, as this can be done as a separate action and is not tied into being used solely for the Mock Servers.

Picking things up from your empty `hellohello` request, If you go to the `examples` section again and press the `Add Example` button it will open up the `Example` builder.

 ![50](https://us1.discourse-cdn.com/getpostman/original/2X/e/e4f6ddffe5034c44b501ca8cfdbf8b6fef8935e8.png)

This will already be pre-populated with the `{{url}}/hellohello` request URL. For the most basic case, all you need to do is add a `Response Body` and a `Response Code`.

Once you press the `Save Example` button, that will now be ready to use in your actual request and return the details you provided.

 ![37](https://us1.discourse-cdn.com/getpostman/original/2X/e/e333e21cc737ab559a0fe817bec4306cc79df5f3.png)

In the main request view, you should now see the `hellohello` example in the dropdown.

 ![58](https://us1.discourse-cdn.com/getpostman/original/3X/1/6/163ad958e6fb7c27b4640e798254877dcca31cec.png)

By hitting the `Send` button, the request will be sent to the Mock Server and it will return the example request that you previously created.

 ![11](https://us1.discourse-cdn.com/getpostman/original/3X/7/e/7e053d5b516d68f6751596e4b636d026d85769cd.png)

I hope that makes sense and you’re able to follow the flow that I listed. Any questions or If you need me to clarify any of the behaviours, don’t hesitate to ask. 🙂

---

_[View the full topic](https://community.postman.com/t/examples-vs-requests-adding-mock-responses-to-an-existing-collection/8115)._
