Postman import url doesn't match raw

Hi there,

I’m new to Postman and have this weird issue with postman imports -

I have a batch of requests I used to run in Dev environment, I export them as JSON, open with notepad and change every raw url to PROD link, as below:

Then I import the collection, but postman would change all url’s back to Dev link.
Can anyone help on this?


Hi @wangzijie011, Welcome to the community!

You may need to change the host also in the file.

But the better way to accomplish this is to use environment variables. You can refer to the document over here.

1 Like

@darkphoenix Thank you so much for your help!