Automate creation of mock server out of collection

I have a collection with almost 500 requests I want to create mock server out of them I don’t want to save each request manually as an example. Can I do it using some API or run complete collection and save all requests as an example?

How I found the problem:

I’ve already tried:

Hi @supply-technologist2

I’m fairly new to mock servers but I don’t know of any automated way of creating examples.

The only suggestion I could offer is that you export the collection as JSON and write a script to add the examples in that way.