# How to edit mock server response body

**URL:** <https://community.postman.com/t/how-to-edit-mock-server-response-body/15615>\
**Category:** Help Hub\
**Tags:** mockservers\
**Created:** [September 4, 2020, 10:18am UTC](https://community.postman.com/t/how-to-edit-mock-server-response-body/15615 "2020-09-04T10:18:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![praveendvdeurofins](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@praveendvdeurofins](https://community.postman.com/u/praveendvdeurofins)\
**Post date:** [September 4, 2020, 10:18am UTC](https://community.postman.com/t/how-to-edit-mock-server-response-body/15615/1 "2020-09-04T10:18:47Z")

</div>

> **Archived topic — some details may be out of date.**  
> Mock servers built from saved collection examples are still supported. Postman now also has **code-based mocks** : JavaScript request handlers plus a `config.yaml`, stored as files in your Git repository, which you can run locally or deploy. Create one in the app, or use the Postman CLI to generate one from an OpenAPI spec, collection or dataset (`postman mock generate`) and run it (`postman mock run`). See [About mocks](https://learning.postman.com/docs/design-apis/mock-apis/mocks/overview) and [Create a mock](https://learning.postman.com/docs/design-apis/mock-apis/mocks/create-a-mock).  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) can build and run mocks for you.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

I have created a mock server ,but now need to edit the endpoint address and response body without changing the mock server base URL. could someone help me in knowing how to do this?

Also, where is this mock server running, could there be any security implications of using a mock server?

---

<div class="post-metadata">

**Author:** ![praveendvdeurofins](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@praveendvdeurofins](https://community.postman.com/u/praveendvdeurofins)\
**Post date:** [September 4, 2020, 11:33am UTC](https://community.postman.com/t/how-to-edit-mock-server-response-body/15615/2 "2020-09-04T11:33:45Z")

</div>

Got it working , had to save example and sync the server . Thanks .

---

<div class="post-metadata">

**Author:** ![NeutrinoSunset](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@NeutrinoSunset](https://community.postman.com/u/NeutrinoSunset)\
**Post date:** [September 8, 2020, 10:23am UTC](https://community.postman.com/t/how-to-edit-mock-server-response-body/15615/3 "2020-09-08T10:23:33Z")

</div>

So how did you do that?

And how do you select which example a mock server users for it’s request?

The UI absolutely terrible.

---

<div class="post-metadata">

**Author:** ![praveendvdeurofins](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@praveendvdeurofins](https://community.postman.com/u/praveendvdeurofins)\
**Post date:** [September 8, 2020, 2:57pm UTC](https://community.postman.com/t/how-to-edit-mock-server-response-body/15615/4 "2020-09-08T14:57:15Z")

</div>

@NeutrinoSunset indeed the UI is terrible for MOck server and has lots of issues too .

I only have default example when multiple example are there sometimes its taking the last one , sometimes it is taking the first example. I am not sure how it works

Even if i delete one request that endpoint is still available in the Mock server

@postman4

---

<div class="post-metadata">

**Author:** ![hettiarachchi.yashod](https://avatars.discourse-cdn.com/v4/letter/h/ed655f/32.png) [@hettiarachchi.yashod](https://community.postman.com/u/hettiarachchi.yashod)\
**Post date:** [March 29, 2023, 5:46am UTC](https://community.postman.com/t/how-to-edit-mock-server-response-body/15615/5 "2023-03-29T05:46:09Z")

</div>

In order to update the examples navigate to your collection(the collection that you used to create the mock server) and expand each request

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