The URL has a token to authenticate itself with our system. The Account ID at the end of the URL tells the system what account information to pull. I’m new to this company and this is how API testing is performed.
If I remove the environment {{url}} and use “https://…” then the API can be reached and it returns a Status code and result set.
WOW…I can’t believe I didn’t catch that! I think that I initially typed in the Initial Value, pressed tab and saw the Current value updated, I must have changed it accidentally
you can leave the current value field empty and the old behavior of Postman will take precedence wherein your initial value would be treated as your current value.
And the standard way to fetch variables is by…
using double curly braces like {{variable-name}} in the text sections, or
using Javascript like pm.environment.get("variable-name") in the pre-request and test script tabs
@joginder8788 -
The Postman app copies the initial value over to the current value while creating a new variable. If you then delete the current value, there’s no API access to the initial values. This allows users to test with an empty variable.
If API access to the initial values is something that you’re looking for, submit a feature request, and be sure to provide more context for your specific use case.