# Deploying a flow file remotely in node-red without overwriting the entire flow file

**URL:** <https://discourse.nodered.org/t/deploying-a-flow-file-remotely-in-node-red-without-overwriting-the-entire-flow-file/44436>\
**Category:** Developing Nodes\
**Created:** [20 April 2021 06:04 UTC](https://discourse.nodered.org/t/deploying-a-flow-file-remotely-in-node-red-without-overwriting-the-entire-flow-file/44436 "2021-04-20T06:04:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![XiaoyuMaxwellWu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/xiaoyumaxwellwu/32/40492_2.png) [@XiaoyuMaxwellWu](https://discourse.nodered.org/u/XiaoyuMaxwellWu)\
**Post date:** [20 April 2021 06:04 UTC](https://discourse.nodered.org/t/deploying-a-flow-file-remotely-in-node-red-without-overwriting-the-entire-flow-file/44436/1 "2021-04-20T06:04:59Z")

</div>

I want to import a json file into node-red dynamically instead of doing it manually, and I tried to use curl command 'curl -X POST [http://localhost:1880/flows](http://localhost:1880/flows) -H "Content-Type: application/json" --data "@myflow.json"', I successfully saw the new flow inside but it overwrote all my previous flows, also the /data/flows.json has been overwritten, however, I would like to add the new flow after the previous one, is it possible to do this?

---

<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:** [19 June 2021 06:05 UTC](https://discourse.nodered.org/t/deploying-a-flow-file-remotely-in-node-red-without-overwriting-the-entire-flow-file/44436/2 "2021-06-19T06:05:35Z")

</div>

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