# Make Node-RED silently accept dynamically added flows

**URL:** <https://discourse.nodered.org/t/make-node-red-silently-accept-dynamically-added-flows/71846>\
**Category:** Developing Nodes\
**Tags:** http-request\
**Created:** [8 December 2022 07:01 UTC](https://discourse.nodered.org/t/make-node-red-silently-accept-dynamically-added-flows/71846 "2022-12-08T07:01:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kakyoism](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kakyoism/32/46283_2.png) [@kakyoism](https://discourse.nodered.org/u/kakyoism)\
**Post date:** [8 December 2022 07:01 UTC](https://discourse.nodered.org/t/make-node-red-silently-accept-dynamically-added-flows/71846/1 "2022-12-08T07:01:00Z")

</div>

I'm trying to POST http request to add flows automatically at run time

```nohighlight
curl -X POST -H "Content-Type: application/json" -d "@/path/to/my/flow.json" http://localhost:1880/flows

```

However, in the browser, I get a prompt asking me to merge the incoming flow.  
My question: Is it possible to suppress this dialog so that the flow can be silently added?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [8 December 2022 09:43 UTC](https://discourse.nodered.org/t/make-node-red-silently-accept-dynamically-added-flows/71846/2 "2022-12-08T09:43:12Z")

</div>

Hi @kakyoism

There is currently no way to prevent that message. We cannot have the editor silently reload the updated flows and lose all of the user's unsaved work in the editor.

The one improvement we could make is that if we are able to detect the update does not conflict with anything the user is doing in the editor, then apply the update in the background. We'd probably still want to provide the user with some sort of notification that something has changed, but that doesn't have to be a modal dialog.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 December 2022 09:54 UTC](https://discourse.nodered.org/t/make-node-red-silently-accept-dynamically-added-flows/71846/3 "2022-12-08T09:54:07Z")

</div>

Note that the flow _is_ added, the notification appears because the browser notices that the flow on the server has been updated.

---

<div class="post-metadata">

**Author:** ![kakyoism](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kakyoism/32/46283_2.png) [@kakyoism](https://discourse.nodered.org/u/kakyoism)\
**Post date:** [8 December 2022 09:57 UTC](https://discourse.nodered.org/t/make-node-red-silently-accept-dynamically-added-flows/71846/4 "2022-12-08T09:57:40Z")

</div>

@Colin  
I understand the "notification" part. But I'd love to skip the modal dialog part when the new flow is added to a blank sheet. I don't need to answer any questions at that point.

---

<div class="post-metadata">

**Author:** ![kakyoism](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kakyoism/32/46283_2.png) [@kakyoism](https://discourse.nodered.org/u/kakyoism)\
**Post date:** [8 December 2022 10:00 UTC](https://discourse.nodered.org/t/make-node-red-silently-accept-dynamically-added-flows/71846/5 "2022-12-08T10:00:32Z")

</div>

@knolleary

Thanks, Nick. You get my idea right there. If there is no question to answer I should not have to click anything.

---

<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:** [6 February 2023 10:01 UTC](https://discourse.nodered.org/t/make-node-red-silently-accept-dynamically-added-flows/71846/6 "2023-02-06T10:01:23Z")

</div>

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