# Modify a resource with Flows (GET then PUT)

**URL:** <https://community.postman.com/t/modify-a-resource-with-flows-get-then-put/39287>\
**Category:** Help Hub\
**Tags:** postman-flows\
**Created:** [September 20, 2022, 4:11pm UTC](https://community.postman.com/t/modify-a-resource-with-flows-get-then-put/39287 "2022-09-20T16:11:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pihentagy](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/pihentagy/32/13250_2.png) [@pihentagy](https://community.postman.com/u/pihentagy)\
**Post date:** [September 20, 2022, 4:11pm UTC](https://community.postman.com/t/modify-a-resource-with-flows-get-then-put/39287/1 "2022-09-20T16:11:03Z")

</div>

Can Flows help me to solve the problem: get a resource and modify something in it better than the linked solutions (which obviously cannot use Flows)?

> [@How to set the entire body of a PUT request with the stored JSON object of a previous GET request?](https://community.postman.com/t/how-to-set-the-entire-body-of-a-put-request-with-the-stored-json-object-of-a-previous-get-request/6492):
>
> Hello everyone. When I do a GET request on an endpoint, I have some code in my “Tests” tab that does the following: var response = pm.response.json(); response.terms = “accept”; response.date = new Date().getDate(); var jsonBody = JSON.stringify(response); pm.environment.set(“nextPutVar”, jsonBody); This successfully captures the entire received JSON payload and stores it as an environment variable. My Postman runner then goes to a PUT request, where I want to insert the entire JSON objec…

> <https://stackoverflow.com/questions/53543883/in-postman-how-do-i-take-a-response-body-from-a-get-request-and-put-it-in-a-pu>

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 12, 2024, 12:52pm UTC](https://community.postman.com/t/modify-a-resource-with-flows-get-then-put/39287/2 "2024-12-12T12:52:18Z")

</div>

Closed on December 12, 2024, 12:52pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
