The “Add to Parameters” option is available only when using query parameters.
Set as Variable
You can use the Set as Variable option from the context menu to assign a selected value to an environment variable. Postdata supports various variable scopes, including global, environment, and request-specific variables. For more details on these scopes click here.How to use “Set as Variable”
After setting an environment variable, you can reference it using the format<<variable name>>
. This allows you to
store For example, <<baseURL>>
can be used to dynamically insert the base URL
across your requests.
Add to Parameters
The Add to Parameters option allows you to quickly add parameters along with their values. When you select Add to Parameters, it automatically captures the parameter and its value. For example, if thebaseURL
is
https://jsonplaceholder.typicode.com/?user=1
, now the user
with ID 1
will
be included in the parameter placeholder.