Hello! I am trying to set up a pre-request script for a PUT call that gets a JSON response, then I am trying to change a value of the json object, and I am not sure what I might be doing wrong.
Image below of function I am having trouble with. responseBody.fields[i].properties.description is keeping its old value rather than updating to “THIS IS A TEST”.
How are you getting the JSON if your script is in a pre-req? Wouldn’t you have to execute the call first and then alter the JSON response in the ‘test’ tab?
Trying to understand what you’re trying to do, could you potentially copy in the response text and full pre-req script?
Hey @w4dd325 thanks for replying. Yea, that’s on me, I didn’t provide full context. I am running a GET call in the same pre-req script just before this: