# Initialize new Subflow in an existing flow using the Admin API Methods

**URL:** <https://discourse.nodered.org/t/initialize-new-subflow-in-an-existing-flow-using-the-admin-api-methods/62984>\
**Category:** Developing Nodes\
**Tags:** http-request\
**Created:** [23 May 2022 22:00 UTC](https://discourse.nodered.org/t/initialize-new-subflow-in-an-existing-flow-using-the-admin-api-methods/62984 "2022-05-23T22:00:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![azmed](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@azmed](https://discourse.nodered.org/u/azmed)\
**Post date:** [23 May 2022 22:00 UTC](https://discourse.nodered.org/t/initialize-new-subflow-in-an-existing-flow-using-the-admin-api-methods/62984/1 "2022-05-23T22:00:25Z")

</div>

Hi Guys,

I would like to initialize a new subflow via the provided REST API (Admin API Methods). Therefore I want to update an existing flow. Is there any possibility to do that via the Rest API?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [24 May 2022 07:45 UTC](https://discourse.nodered.org/t/initialize-new-subflow-in-an-existing-flow-using-the-admin-api-methods/62984/2 "2022-05-24T07:45:49Z")

</div>

yes - you can post a new set of flows - [POST /flows : Node-RED](https://nodered.org/docs/api/admin/methods/post/flows/)  
but it will be a stop start deploy.

---

<div class="post-metadata">

**Author:** ![azmed](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@azmed](https://discourse.nodered.org/u/azmed)\
**Post date:** [24 May 2022 07:57 UTC](https://discourse.nodered.org/t/initialize-new-subflow-in-an-existing-flow-using-the-admin-api-methods/62984/3 "2022-05-24T07:57:28Z")

</div>

Do you have any example? Where is the id of the new node created? Do I have to post all flows? I would like just to deploy the flow updated.

---

<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:** [23 July 2022 07:58 UTC](https://discourse.nodered.org/t/initialize-new-subflow-in-an-existing-flow-using-the-admin-api-methods/62984/4 "2022-07-23T07:58:12Z")

</div>

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