Mock Service Returning Incorrect Example Response

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 and Create a mock.
Working with an AI coding agent? The Postman plugin can build and run mocks for you.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

Hi, I created a mock service for my collection (C) that contains one request (R).
Request R accepts, at most, 3 query parameters. I then saved all examples of request R for all possible combinations of query parameters.

When calling the actual request R without any query parameter, it responded with HTTP 401 which I saved as an example to be used in mocking. However, when calling the mock endpoint for that request without any query parameter, it did not return the exact example saved for that request. Instead, the mock service returned another example that is meant for a request that takes in all 3 query parameters.

Has anyone experienced the same issue?