# You can now edit Mock Servers in Postman

**URL:** <https://community.postman.com/t/you-can-now-edit-mock-servers-in-postman/8012>\
**Category:** Help Hub\
**Tags:** mocks\
**Created:** [September 26, 2019, 9:49am UTC](https://community.postman.com/t/you-can-now-edit-mock-servers-in-postman/8012 "2019-09-26T09:49:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaustavdm](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kaustavdm/32/1778_2.png) [@kaustavdm](https://community.postman.com/u/kaustavdm)\
**Post date:** [September 26, 2019, 9:49am UTC](https://community.postman.com/t/you-can-now-edit-mock-servers-in-postman/8012/1 "2019-09-26T09:49: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).

Starting Postman v7.7.0, you can now edit your existing Mock Servers. You can do this from the Postman app as well as from the web dashboard. You can edit a Mock Server’s name, version tag, environment and toggle its private status.

For more details, read:

> **[Create a Postman mock server from a mock or a collection | Postman Docs](https://learning.postman.com/docs/design-apis/mock-apis/mock-servers/overview/)**
>
> A mock server is an always-available hosted stand-in for an API. Create one from a code mock or from a collection, then call it from anywhere.

---

<div class="post-metadata">

**Author:** ![postman-paul540](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/postman-paul540/32/149_2.png) [@postman-paul540](https://community.postman.com/u/postman-paul540)\
**Post date:** [September 30, 2019, 6:55am UTC](https://community.postman.com/t/you-can-now-edit-mock-servers-in-postman/8012/2 "2019-09-30T06:55:44Z")

</div>

Is there a way to edit the response body returned after creating a Mock?  
I created one last night and couldn’t see a way to do this.

I know you can create example Response Bodies and delete, edit them that way etc. But I’m talking about the Response Body you supply when you first create the Mock? Hopefully I’m just missing something obvious.

Cheers!

---

<div class="post-metadata">

**Author:** ![vansh.singh](https://avatars.discourse-cdn.com/v4/letter/v/6f9a4e/32.png) [@vansh.singh](https://community.postman.com/u/vansh.singh)\
**Post date:** [September 30, 2019, 7:21am UTC](https://community.postman.com/t/you-can-now-edit-mock-servers-in-postman/8012/3 "2019-09-30T07:21:56Z")

</div>

Hi @postman-paul540! Thanks for writing in!  
If you create a mock server from scratch i.e without an existing collection, you create requests and responses in the mock creation workflow. A corresponding collection is created for you and the mock server runs on top of this collection. You can edit the examples associated with the requests in this collection and this reflects in the mock server.

On the other hand, if you create a mock server on an existing collection, you can directly change the examples in the collection and it is reflected in the mock server.

To summarise, the mock server is always created on top of a collection and whatever changes you make to collection (request, headers, body, response/examples, etc) are automatically reflected in the mock server.  
I hope this clarifies your query. Please let us know if you need more info

---

<div class="post-metadata">

**Author:** ![postman-paul540](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/postman-paul540/32/149_2.png) [@postman-paul540](https://community.postman.com/u/postman-paul540)\
**Post date:** [September 30, 2019, 7:34am UTC](https://community.postman.com/t/you-can-now-edit-mock-servers-in-postman/8012/4 "2019-09-30T07:34:46Z")

</div>

Cheers, I’ll try this out tonight 👍

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 11, 2024, 4:06pm UTC](https://community.postman.com/t/you-can-now-edit-mock-servers-in-postman/8012/5 "2024-12-11T16:06:11Z")

</div>

Closed on December 11, 2024, 4:06pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
