We have enabled custom pre-request and post-response scripting for steps in Multi-step API monitors . The Multi-step API monitor type supports many built-in options to configure requests and handle the response, but for some use cases, extra flexibility or functionality may be required. The new scripting tabs allow users to apply and execute Javascript code to the request and the response for each step, including special functions to interact with the rest of the monitor settings.
With some scripting, this will allow for maximum flexibility to configure the request or response handling in exactly the way you require.