GET
submit
https://api.getpostman.com/collections/{{collectionUid}}
It’s time to submit your solution.
- Get the collection ID: Select the collection in the sidebar. Then in the context bar to the right, select the
Info
icon and copy the collectionID
. Make sure you’re getting theID
for the collection, and not this request. - Update the request URL: Update the
collectionUid
in the request URL with the collectionID
from the previous step, using any method you prefer. - Get your Postman API key : Get your Postman API key and make a new environment variable called
postman_api_key
, so that Postman can authorize your request as shown under the Headers tab. Paste the API key underCURRENT VALUE
(and notINITIAL VALUE
).
DON’T LEAK YOUR SECRETS!
It’s very important to add sensitive values like an API key to theCURRENT VALUE
(and notINITIAL VALUE
) of your public workspace since initial values can be viewed publicly in a public workspace. Storing sensitive values only inCURRENT VALUE
keeps your secrets private in a team or public workspace. If you accidentally show your API key, revoke and regenerate your API key.
An environment can be used with other collections. Keep it handy, so we can use it in upcoming challenges.
- Validate your solution : Save your changes in the collection and environment. Hit Send and look under the Tests tab of the server response at the bottom to review your test results.
Here, what would be the final URl and where to put postman api keys in request URL??