# Update a flow using http request

**URL:** <https://discourse.nodered.org/t/update-a-flow-using-http-request/57375>\
**Category:** Developing Nodes\
**Tags:** http-request\
**Created:** [28 January 2022 00:56 UTC](https://discourse.nodered.org/t/update-a-flow-using-http-request/57375 "2022-01-28T00:56:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [28 January 2022 00:56 UTC](https://discourse.nodered.org/t/update-a-flow-using-http-request/57375/1 "2022-01-28T00:56:41Z")

</div>

Dear all,

I want to update a flow using the http request node via nodered's API admin.  
Is this possible?  
I found some documentation but I am having difficulty to understand it.

As per doc, I can use the PUT/flow/:id to update a specific flow.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/d/ed7db289af33e9025ae31a91cae43b5769968b8e.png)

However, I cannot see where to put the JSON data on my http request node.  
As per document, I need to add this data onto the http request:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/6/d68229eeaa615c45683239d5f2e71d41f9fc2819.png)

But the http request node only have this configuration:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/a/5a2c258626a0faae764985c9def6c4da9bf702b9.png)

So basically what I want to do is, update the flow using the nodered http request.

Hoping for your guidance.

Regards,  
Henjoe

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [28 January 2022 01:06 UTC](https://discourse.nodered.org/t/update-a-flow-using-http-request/57375/2 "2022-01-28T01:06:00Z")

</div>

> [@Henjoe](#):
>
> However, I cannot see where to put the JSON data on my http request node.

Hello ..

The **http-request** node has an input that can accept a msg.  
The body of the request is sent using `msg.payload`  
( You could use a preceding Inject, Change, Function or any other node to construct a `msg.payload`. )

If you select the **http-request** node and view its Help tab on the side window  
you get a detailed explanation of all the properties that you can set for that node.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/1/a187cfb18be34df4f3afe9e38ee0c56e250ed26c.png)

---

<div class="post-metadata">

**Author:** ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Post date:** [28 January 2022 01:26 UTC](https://discourse.nodered.org/t/update-a-flow-using-http-request/57375/3 "2022-01-28T01:26:47Z")

</div>

I see!  
Thanks my friend!  
I mislooked in the documentation.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/5/25c9a3dfd78a427ef9269de19a70f36a0d578fd1.png)

Regards,  
Henjoe

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 February 2022 01:26 UTC](https://discourse.nodered.org/t/update-a-flow-using-http-request/57375/4 "2022-02-11T01:26:50Z")

</div>

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