Paw-Issues
Paw-Issues copied to clipboard
Set environment variable after response
I have three authentication requests with a different permission level. After each request, I want to set a token (which is given by each auth response) to an environment variable. So that I can reuse that token for a bunch of other requests as a different permission level without any additional click.
Or any suggestions to achieve above issue?
this might be what you looking for: https://paw.cloud/docs/environments/environments-from-responses
I have a similar issue. The thing with the environments from responses is that I haven't found a way to update an existing variable from multiple responses. I can copy the dynamic response value... but there is no way to say I want to update it in a further response. My closest workaround has been to have a response_value1, and then on the endpoint that would update it have response_value2 and so on. But that's not really what I want. I want response_value as the variable, and any of the requests capable of updating it if it's provided in the response to the request. With subsequent requests using that new value until it changes again.
Hey, is there something new about this? I'm looking for the same :-)
Yes same ! That would be great ! Tks
+1
dynamic values not working per environment. It's the same value as all environment