Paw-Issues icon indicating copy to clipboard operation
Paw-Issues copied to clipboard

Set environment variable after response

Open dhguswns23 opened this issue 5 years ago • 5 comments

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?

dhguswns23 avatar Nov 30 '19 17:11 dhguswns23

this might be what you looking for: https://paw.cloud/docs/environments/environments-from-responses

Bazaid avatar Dec 24 '19 23:12 Bazaid

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.

cpansky avatar Apr 02 '20 16:04 cpansky

Hey, is there something new about this? I'm looking for the same :-)

mludi avatar May 19 '21 20:05 mludi

Yes same ! That would be great ! Tks

gaetansenn avatar Mar 29 '22 12:03 gaetansenn

+1

dynamic values not working per environment. It's the same value as all environment

hungdh0x5e avatar May 08 '24 05:05 hungdh0x5e