Skip to content

Saving values for later

Under the checks on the Assertions tab, Save values for the next requests takes a value from the response by JSON path and stores it as a {{variable}}, in the active environment or the collection.

Saved values under the checks: a JSON path stored as a variable for the next request.

Values are saved after every response, before the after-response script runs. They live in memory, not in your files; see Variables and environments for how they rank against other values.

Text is stored as it is. Anything else is stored as JSON, with numbers exactly as the server wrote them. A path with [*] stores a list.

You can also right-click a row in the response’s Schema view and choose Save as Variable….