How to modify the request payload for subsequent request

I am getting the response from request1 and I am storing that response in variable and want to send the response payload to my subsequent request2, but before that I want to modify the data in payload, please help to achieve this.