How to pass the first JSON response in the next request endpoint

I get this response body in my first request:
{
“resource-id”: “abcd”
}

I need to use the value for the above “resource-id” in the next request endpoint: {{url}}/abcd/END-POINT

Any suggestions?

Hi Nayak,

Welcome to community :wave:

I have attached a sample collection below which uses JSON response of first request in next request. Please take a look at it.
https://www.getpostman.com/collections/6f65aab00c8cbf74aa41

Hope this helps.

Useful Links:

https://learning.getpostman.com/docs/postman/environments_and_globals/variables/#accessing-variables-through-scripts