I have ran a POST request to create a new contract. The Json response for this request was a string ID.
"03007"
My Post request has a test to save the response as an environment variable.
var jsonData = JSON.parse(responseBody);
postman.setEnvironmentVariable("newContractNb", jsonData);
I then have a GET request that plugs the response variable into the request so that I Get the data for the contract I created.
My Response is like so.
{
"contractNb": "03007",
"progSrvcNm": "009",
"contractPrtyNm": "PostmanAutomationContract",
"contractCd": "000",
"signDt": "2018-01-01T00:00:00",
"startDt": "2018-01-01T00:00:00",
"endDt": "2025-01-01T00:00:00",
"remitTerms": 30
}
I have a Test in the Get method to save this response body as a variable.
pm.environment.set('getRequestBody', pm.response.json())
Is it possible to then use this variable in the Body or Pre-req section of a PUT request, but somehow make it so that it alters a select parameter(s) - such as the contractPrtyNm only?

thanks @Danny Dainton for the help!
My Get method after the post contained the following in order to save the response as a variable and edit it all in one.
I then ran my PUT method with the variable in the body.