# \#examples

**URL:** https://community.postman.com/tag/examples/26.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [Where is "Generate from Response" button?](https://community.postman.com/t/where-is-generate-from-response-button/88037)

<div class="topic-metadata">

**Author:** [@anlex-N](https://community.postman.com/u/anlex-N)\
**Replies:** 1\
**Last updated:** [January 15, 2026, 2:08pm UTC](https://community.postman.com/t/where-is-generate-from-response-button/88037 "2026-01-15T14:08:22Z")

</div>

I know “Generate from Response” buttom from Add types to body data with an API collection But I can not find it in the Postman desktop 11.80.2

---

## [Mock matches the wrong example using x-mock-response-name](https://community.postman.com/t/mock-matches-the-wrong-example-using-x-mock-response-name/86133)

<div class="topic-metadata">

**Author:** [@tomaszmosko](https://community.postman.com/u/tomaszmosko)\
**Replies:** 2\
**Last updated:** [October 23, 2025, 10:30am UTC](https://community.postman.com/t/mock-matches-the-wrong-example-using-x-mock-response-name/86133 "2025-10-23T10:30:21Z")

</div>

Using a mock server, if I have two sample responses with the same name, if I use x-mock-response-name “200 - ok” and a POST to address B, it still returns the response from A. If I change “200 - ok” in A to “200 - oks,”…

---

## [Feature Request add the ability to create folder of Examples](https://community.postman.com/t/feature-request-add-the-ability-to-create-folder-of-examples/83018)

<div class="topic-metadata">

**Author:** [@jgarcian](https://community.postman.com/u/jgarcian)\
**Replies:** 4\
**Last updated:** [August 11, 2025, 12:11pm UTC](https://community.postman.com/t/feature-request-add-the-ability-to-create-folder-of-examples/83018 "2025-08-11T12:11:48Z")

</div>

Hello!, We have been using Postman for a while and we would like to have examples of the Request and the posibility to create a Folder for each environment instead having the examples Named: DEV\_Whatever or STG\_Whatever…

---

## [Importing OAS contract - Parameter examples not loaded](https://community.postman.com/t/importing-oas-contract-parameter-examples-not-loaded/79394)

<div class="topic-metadata">

**Author:** [@syscents](https://community.postman.com/u/syscents)\
**Replies:** 2\
**Last updated:** [May 2, 2025, 12:36pm UTC](https://community.postman.com/t/importing-oas-contract-parameter-examples-not-loaded/79394 "2025-05-02T12:36:39Z")

</div>

Hello, I want to create a Postman collection from an API contract. I need Postman creates samples based on the contract. However, I’m unable to get Postman to load the parameter values (headers in this case) according…

---

## [Can Postbot help with request sample generation?](https://community.postman.com/t/can-postbot-help-with-request-sample-generation/71253)

<div class="topic-metadata">

**Author:** [@mission-technologist](https://community.postman.com/u/mission-technologist)\
**Replies:** 0\
**Last updated:** [November 14, 2024, 8:15pm UTC](https://community.postman.com/t/can-postbot-help-with-request-sample-generation/71253 "2024-11-14T20:15:30Z")

</div>

It would be very useful to use AI to directly modify the payload since that’s a lot of manual work. I’m not sure if that’s already possible and I’m missing something

---

## [502 Bad Gateway NGINX](https://community.postman.com/t/502-bad-gateway-nginx/61290)

<div class="topic-metadata">

**Author:** [@aditi139](https://community.postman.com/u/aditi139)\
**Replies:** 0\
**Last updated:** [May 21, 2024, 1:25pm UTC](https://community.postman.com/t/502-bad-gateway-nginx/61290 "2024-05-21T13:25:19Z")

</div>

For a collection, when I mock an API using the mock server URL, the first API mock example returns 200 OK, but 2nd mock example of 2nd API is returning 502 Bad Gateway NGINX. Steps Create a collection of APIs Mock t…

---

## [Exporting the saved examples (request and response)](https://community.postman.com/t/exporting-the-saved-examples-request-and-response/54418)

<div class="topic-metadata">

**Author:** [@sreekanth.t.31](https://community.postman.com/u/sreekanth.t.31)\
**Replies:** 1\
**Last updated:** [November 8, 2023, 11:44am UTC](https://community.postman.com/t/exporting-the-saved-examples-request-and-response/54418 "2023-11-08T11:44:36Z")

</div>

Hi, I am looking for help in exporting the saved examples to a local drive. I have a Postman collection which is having 100+ saved examples. Now I want to move/ export/ save the request and response of each saved examp…

---

## [Generate examples automatically](https://community.postman.com/t/generate-examples-automatically/42692)

<div class="topic-metadata">

**Author:** [@ddecasth](https://community.postman.com/u/ddecasth)\
**Replies:** 3\
**Last updated:** [January 18, 2023, 12:56am UTC](https://community.postman.com/t/generate-examples-automatically/42692 "2023-01-18T00:56:52Z")

</div>

Hi there. I love Postman examples, but I would love them even more if you could create them automatically. I have some APIs that are usually down, so when they are up and I call them I would like to save the request/re…

---

## [Use request body parts in Response](https://community.postman.com/t/use-request-body-parts-in-response/40894)

<div class="topic-metadata">

**Author:** [@aerospace-meteorolo9](https://community.postman.com/u/aerospace-meteorolo9)\
**Replies:** 0\
**Last updated:** [November 8, 2022, 11:31am UTC](https://community.postman.com/t/use-request-body-parts-in-response/40894 "2022-11-08T11:31:53Z")

</div>

My question: Is there a way in fake server “Example” to use some part of the request body in the response ? For example if I receive: { "type": "sometype", "object": {...} } I would like the example to respond : …

---

## [Create examples with scripting](https://community.postman.com/t/create-examples-with-scripting/37088)

<div class="topic-metadata">

**Author:** [@karelhusa](https://community.postman.com/u/karelhusa)\
**Replies:** 0\
**Last updated:** [July 11, 2022, 12:34pm UTC](https://community.postman.com/t/create-examples-with-scripting/37088 "2022-07-11T12:34:33Z")

</div>

Create examples with scripting I am looking for an option to create examples programatically. The desired scenario: Send a request to the API server. Save a response as an example. Set the query param of the example. …

---

## [Mock server responses matching request query string params](https://community.postman.com/t/mock-server-responses-matching-request-query-string-params/343)

<div class="topic-metadata">

**Author:** [@overflow](https://community.postman.com/u/overflow)\
**Replies:** 23\
**Last updated:** [May 17, 2022, 8:46pm UTC](https://community.postman.com/t/mock-server-responses-matching-request-query-string-params/343 "2022-05-17T20:46:56Z")

</div>

Hello, I am testing Postman Mock Server functionality and I am not able to understand how does the matching algorithm works. Especially, is it possible to returns different response according to to matching request que…

---

## [Mock Server - Using Variables in Example Response](https://community.postman.com/t/mock-server-using-variables-in-example-response/2594)

<div class="topic-metadata">

**Author:** [@JamieW1972](https://community.postman.com/u/JamieW1972)\
**Replies:** 16\
**Last updated:** [March 15, 2022, 6:05pm UTC](https://community.postman.com/t/mock-server-using-variables-in-example-response/2594 "2022-03-15T18:05:52Z")

</div>

Hello I have set up a mock server, with a very simple example JSON response: { "client\_ref": "zzzzzzzz" } This is working fine. However I’ve also set up some variables, and I’m unable to create an example response tha…

---

## [Send request from example/BDD features?](https://community.postman.com/t/send-request-from-example-bdd-features/31268)

<div class="topic-metadata">

**Author:** [@Oleksandr-Menzerov](https://community.postman.com/u/Oleksandr-Menzerov)\
**Replies:** 0\
**Last updated:** [January 5, 2022, 11:17am UTC](https://community.postman.com/t/send-request-from-example-bdd-features/31268 "2022-01-05T11:17:09Z")

</div>

Hello! I am little newbie in Postman, but want to talk about very useful feature. I would love to have an opportunity to send requests from examples. I understand that examples feature in Postman not provide such functio…

---

## [Is there a way to disable example on each request?](https://community.postman.com/t/is-there-a-way-to-disable-example-on-each-request/20275)

<div class="topic-metadata">

**Author:** [@stsong](https://community.postman.com/u/stsong)\
**Replies:** 1\
**Last updated:** [December 10, 2021, 2:46pm UTC](https://community.postman.com/t/is-there-a-way-to-disable-example-on-each-request/20275 "2021-12-10T14:46:09Z")

</div>

I am running the latest version 8.0.5, I’ve noticed that each of my request now have an example associated with it. All the example are the same. Is there a way to turn auto generated example off? Screen shot attached. …

---

## [Example Response is too large to be saved](https://community.postman.com/t/example-response-is-too-large-to-be-saved/27991)

<div class="topic-metadata">

**Author:** [@heyomi](https://community.postman.com/u/heyomi)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 12:46pm UTC](https://community.postman.com/t/example-response-is-too-large-to-be-saved/27991 "2021-09-20T12:46:15Z")

</div>

My question: Is there a maximum file size for saving example responses? Can it be increased? Details (like screenshots): I’m trying to save a large example response to be used on my mock server. I’m getting this error …

---

## [Disable auto-expanding Examples when clicking on a Request in a Collection](https://community.postman.com/t/disable-auto-expanding-examples-when-clicking-on-a-request-in-a-collection/27185)

<div class="topic-metadata">

**Author:** [@brandon-wonderful](https://community.postman.com/u/brandon-wonderful)\
**Replies:** 0\
**Last updated:** [August 26, 2021, 6:57pm UTC](https://community.postman.com/t/disable-auto-expanding-examples-when-clicking-on-a-request-in-a-collection/27185 "2021-08-26T18:57:05Z")

</div>

My question: Is there a way to not have the list of examples attached to a request automatically expand when I select that request? If not, can we have an option to toggle this behavior in the settings? Details (like s…

---

## [Example Request Escape Characters](https://community.postman.com/t/example-request-escape-characters/4148)

<div class="topic-metadata">

**Author:** [@lrobledo](https://community.postman.com/u/lrobledo)\
**Replies:** 1\
**Last updated:** [April 20, 2021, 12:25pm UTC](https://community.postman.com/t/example-request-escape-characters/4148 "2021-04-20T12:25:29Z")

</div>

I’m trying to find a way to get rid of these escape characters in the auto-generated example request on postman’s API documentation: --data "{ \\"token\\": \\"eb50a022-d6de-4244-a1e6-dcb8522b2d19\\", \\"card\\": { …

---

## [Use local variables in examples. Access to requests history](https://community.postman.com/t/use-local-variables-in-examples-access-to-requests-history/18086)

<div class="topic-metadata">

**Author:** [@sergiyd](https://community.postman.com/u/sergiyd)\
**Replies:** 1\
**Last updated:** [December 4, 2020, 10:59am UTC](https://community.postman.com/t/use-local-variables-in-examples-access-to-requests-history/18086 "2020-12-04T10:59:10Z")

</div>

Hi, I’m new one to Postman and trying to consider it as a mocking tool. First thing I wasn’t able to use local variables in examples. For instance: request { "firstName": "John", "lastName": "Doe", "dob…

---

## [{{url}}/knockknock cannot be used as a mock server endpoint](https://community.postman.com/t/url-knockknock-cannot-be-used-as-a-mock-server-endpoint/14641)

<div class="topic-metadata">

**Author:** [@shaun.williams](https://community.postman.com/u/shaun.williams)\
**Replies:** 3\
**Last updated:** [July 31, 2020, 1:27pm UTC](https://community.postman.com/t/url-knockknock-cannot-be-used-as-a-mock-server-endpoint/14641 "2020-07-31T13:27:46Z")

</div>

Hi, I have been using postman and mock servers for a while now, but today I was attempting demonstrate the use of mock servers to some of my peers. I decided to take a trivial example to quickly set up and demonstrate. …

---

## [Use environment variable in mock examples](https://community.postman.com/t/use-environment-variable-in-mock-examples/13078)

<div class="topic-metadata">

**Author:** [@alexandre.perrachon](https://community.postman.com/u/alexandre.perrachon)\
**Replies:** 5\
**Last updated:** [June 4, 2020, 11:10am UTC](https://community.postman.com/t/use-environment-variable-in-mock-examples/13078 "2020-06-04T11:10:16Z")

</div>

Hi there I’m trying to reuse my URL parameters inside my mock examples. For example: /mock?param=ABC would ideally reply { "param" = "ABC" } /mock?param=BCD would reply { "param" = "BCD" } etc In my exa…

---

## [Getting mocked examples to work on forked collection](https://community.postman.com/t/getting-mocked-examples-to-work-on-forked-collection/11417)

<div class="topic-metadata">

**Author:** [@mfuruya](https://community.postman.com/u/mfuruya)\
**Replies:** 1\
**Last updated:** [March 20, 2020, 4:29pm UTC](https://community.postman.com/t/getting-mocked-examples-to-work-on-forked-collection/11417 "2020-03-20T16:29:38Z")

</div>

Is there a trick to getting mocked examples to work on a collection that has been forked? It seems that a mocked examples only works with the original collection but not the forked ones. My forked collection is hitting t…

---

## [Using Wildcards - Mock Server Matching Algorithm](https://community.postman.com/t/using-wildcards-mock-server-matching-algorithm/11310)

<div class="topic-metadata">

**Author:** [@maryfatimma](https://community.postman.com/u/maryfatimma)\
**Replies:** 2\
**Last updated:** [March 11, 2020, 8:18pm UTC](https://community.postman.com/t/using-wildcards-mock-server-matching-algorithm/11310 "2020-03-11T20:18:22Z")

</div>

I’m trying to follow the instructions for using wildcards in Mock Server Example URLs as described in the documentation here, but I’m not having any luck: https://learning.postman.com/docs/postman/mock-servers/matching-…

---

## [How to switch mock server request's response from all example?](https://community.postman.com/t/how-to-switch-mock-server-requests-response-from-all-example/8707)

<div class="topic-metadata">

**Author:** [@abet](https://community.postman.com/u/abet)\
**Replies:** 2\
**Last updated:** [October 31, 2019, 5:41am UTC](https://community.postman.com/t/how-to-switch-mock-server-requests-response-from-all-example/8707 "2019-10-31T05:41:47Z")

</div>

Here is a mock server and API01, 3 examples of API01. ex1: HTTP200 response sample ex2: HTTP400 response sample ex3: HTTP401 response sample. Latest created. My question is how to change response from 3 examples. It…

---

## [Basic Auth Example Using Mock Server](https://community.postman.com/t/basic-auth-example-using-mock-server/7643)

<div class="topic-metadata">

**Author:** [@Post\_It\_Notes](https://community.postman.com/u/Post_It_Notes)\
**Replies:** 0\
**Last updated:** [September 6, 2019, 3:02am UTC](https://community.postman.com/t/basic-auth-example-using-mock-server/7643 "2019-09-06T03:02:11Z")

</div>

I have created several post request examples that deliver their respective responses when the correct Basic Auth value (as base64) is passed in the header. The problem is that when I make the call to any example path, no…

---

## [Order response examples in published API documentation](https://community.postman.com/t/order-response-examples-in-published-api-documentation/6385)

<div class="topic-metadata">

**Author:** [@richard.hopkirk](https://community.postman.com/u/richard.hopkirk)\
**Replies:** 2\
**Last updated:** [July 8, 2019, 9:57pm UTC](https://community.postman.com/t/order-response-examples-in-published-api-documentation/6385 "2019-07-08T21:57:36Z")

</div>

It appears that published API example responses don’t conform to an order. I want people to see happy path (200 responses) when they hit the documentation, not error scenarios. As far as I can tell there’s no way to se…

---

## [Date parameter in API example/ simulation](https://community.postman.com/t/date-parameter-in-api-example-simulation/4615)

<div class="topic-metadata">

**Author:** [@vk\_makam](https://community.postman.com/u/vk_makam)\
**Replies:** 0\
**Last updated:** [March 19, 2019, 10:17am UTC](https://community.postman.com/t/date-parameter-in-api-example-simulation/4615 "2019-03-19T10:17:04Z")

</div>

Hi, We are planning to create a GET API example/ simulation using Postman Mock Server. The GET API example accepts the date parameter, When we save the example with hard coded date string we are unable to get the respons…

---

## [Unable to use environment variable in response header of an example](https://community.postman.com/t/unable-to-use-environment-variable-in-response-header-of-an-example/3672)

<div class="topic-metadata">

**Author:** [@jasonlaw](https://community.postman.com/u/jasonlaw)\
**Replies:** 0\
**Last updated:** [December 27, 2018, 1:59pm UTC](https://community.postman.com/t/unable-to-use-environment-variable-in-response-header-of-an-example/3672 "2018-12-27T13:59:03Z")

</div>

I created an example and have the response to return a header X-Request-ID with a value from an environment variable. When I send the request to the mock server, the header of the response was not replaced with the envi…

---

## [The response example supports comments](https://community.postman.com/t/the-response-example-supports-comments/3012)

<div class="topic-metadata">

**Author:** [@hgsdev](https://community.postman.com/u/hgsdev)\
**Replies:** 0\
**Last updated:** [October 15, 2018, 10:26am UTC](https://community.postman.com/t/the-response-example-supports-comments/3012 "2018-10-15T10:26:48Z")

</div>

Please read through the guidelines before creating a new issue. Is your feature request related to a problem? Please describe. Through postman, I can easily provide response example for my colleagues . But telling col…

---

## [BigQuery examples?](https://community.postman.com/t/bigquery-examples/1037)

<div class="topic-metadata">

**Author:** [@lsloan\_umich](https://community.postman.com/u/lsloan_umich)\
**Replies:** 0\
**Last updated:** [February 23, 2018, 5:48pm UTC](https://community.postman.com/t/bigquery-examples/1037 "2018-02-23T17:48:13Z")

</div>

Can anyone here share an example of making a query to Google’s BigQuery API from Postman?
