Collection Values - reset via Postman API?

Hi,

For testing my API I have a JSON schema saved as a variable on the Collection. I have also created a build script that uses the Postman API to update this variable whenever it changes in my version control system.

This works fairly well, except that every time I changes, and I want to run it via the postman UI, I need to go into the collection, select the variables tab, and press “Reset All” otherwise the “Current” value of my JSON schema remains at the previous version.

Is there any way to do the “Reset All” via the postman API?

I’ve looked at the “Automatically persist variable values” option in the Postman client, but it doesn’t seem to matter which way I have this set, I always seem to have to do the manual reset.

Thanks,
Andrew.

3 Likes