Refresh Mock Server and Collection after API definiton has changed

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.

What is the fasted way of refreshing a collection and a mock server after the OpenAPI schema has been changed? Do i really always need to recreate them ?

Hi @pbrunmaypbs

Welcome to the community :wave:

Yes! I do understand how important it is unfortunately, there is no way to do this at present. We are currently tracking this feature on GitHub - below is the link for the same:

Feel free to upvote or add any additional comments that will help our team look into it :slight_smile: