Yaak Logo
Yaak
Feedback/Set env from Response Value

Set env from Response Value

Kenneth Thomsen·10 months ago

So, one thing I used a lot in Postman was to send the auth request, and then via the “Post Response"-script, extract the JWT and save it to the env variable that contains the JWT, used in my other HTTP requests.

Of course, this could be any value. Send a request to create a new user, automatically extract the new user ID, and reuse it in the next 5 requests.

I would love to have something similar in Yaak, so I don’t have to copy/paste values from responses into my requests, but can just add variables that would automatically be updated.

Mac

Comments (5)

Gregory Schier

You should look into Request Chaining for this. Let me know if that works!

Scott Rubin

I want to set environment variables from a response in a non-automated fashion.

For example:

1. Make a request to an endpoint that lists many objects.
2. Pick the ID of one of the objects and save it to an environment variable.
3. Make another request which uses that environment variable.

The way this works in Postman is you can use the mouse to highlight any text in a response, open a right-click context menu, and then save the highlighted text into an environment variable.

I really want to get away from Postman, but this one feature is absolutely essential. Despite there being so many competing products all of them, including Yaak, make it far too tedious to rapidly and frequently modify environment variables. This one essential feature is trapping me in Postman.

Hugo Gallazzini

Hi, Request Chaining would not work for me. I have multiple “request chain paths” instead of just one.

For example, if i have multiple ways of creating a resource. I would like to set a "resource id" variable from both responses then use it in another API.

Other example: all requests could return a "continuation token" that should be sent to the next call as headers.

josephcross

Agree with this. This is probably the last thing keeping me from switching from insomnia.

Jorge Cuarón

This would be super helpful. This is the only feature I’m missing from Postman

Type to search feedback...