I have the following setup:
- Get request which pulls data into three variables (currencies)
- Post Request which gives me a new acces token and refresh token and puts it into two variables.
- Post request which uses all the variables to update an XML ‘template’ (in body as code) and push it to the service.
All this is setup in a collection. This all works fine when running this through postman itself. However, I need to ‘schedule’ this to run everyday at a certain time. I thought of using a monitor, but this doesn’t work. It works the very first time I run it, but after this it doesn’t. It doesn’t update the variables anymore, and uses ‘old’ data, such as the old refresh token, resulting in a 401 unauthorized.
I may be doing something wrong here. The variables are not global but put in a specific environment.
Is monitoring the way to do this? Or can I use a different way to schedule this daily? I have a server available where I could set this up to do so but it would be nicer to run this cloud based.