记录一个在 SO 上发的一个自问自答
read the source
Let's say I want to create a new obj called 'qif' then get its id, and then update it.
- In Postman open the first request - Test tab enter:
var jsonData = JSON.parse(responseBody);
pm.environment.set("new_create_qif_id", jsonData.id);
- after sending the request you will get the environment valuable
new_create_qif_id
ready.
- use
{{new_create_qif_id}}
in request body or URL, it will be updated every time we run the collection or folder
Requesting token is just the same.