# Customizing deployment to send settings.json to other nodered Instance

**URL:** <https://discourse.nodered.org/t/customizing-deployment-to-send-settings-json-to-other-nodered-instance/4594>\
**Category:** General\
**Created:** [5 November 2018 20:07 UTC](https://discourse.nodered.org/t/customizing-deployment-to-send-settings-json-to-other-nodered-instance/4594 "2018-11-05T20:07:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ErickWendel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/erickwendel/32/3563_2.png) [@ErickWendel](https://discourse.nodered.org/u/ErickWendel)\
**Post date:** [5 November 2018 20:07 UTC](https://discourse.nodered.org/t/customizing-deployment-to-send-settings-json-to-other-nodered-instance/4594/1 "2018-11-05T20:07:13Z")

</div>

Hi Guys. We are thinking to develop a distributed nodered cluster to make something like a Studio. My customers will draw your own flows but I want to customize the deploy button. When my customer clicks on the deploy button, I need to send the settings.json to other nodered instance.

In my case, I need only the feature to create and expose endpoints from JSON file on the backend (in a different place) and in the frontend, the nodered interface will get the settings.json dynamically from a previous request.

---

<div class="post-metadata">

**Author:** ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)\
**Post date:** [5 November 2018 20:56 UTC](https://discourse.nodered.org/t/customizing-deployment-to-send-settings-json-to-other-nodered-instance/4594/2 "2018-11-05T20:56:27Z")

</div>

While you can certainly send file contents between running node-red instances, and even replace the current settings.json file -- it will take a shutdown/restart cycle to have the new settings re-read. I don't believe there is any admin api available to change them on the fly...

---

<div class="post-metadata">

**Author:** ![ErickWendel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/erickwendel/32/3563_2.png) [@ErickWendel](https://discourse.nodered.org/u/ErickWendel)\
**Post date:** [5 November 2018 21:13 UTC](https://discourse.nodered.org/t/customizing-deployment-to-send-settings-json-to-other-nodered-instance/4594/3 "2018-11-05T21:13:45Z")

</div>

To me, it isn't a problem. I'm using Kubernetes and I can recreate any time my instances. But I don't find any example about how to do this. Do you have some examples to send data to other nodered instance?

---

<div class="post-metadata">

**Author:** ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)\
**Post date:** [5 November 2018 21:25 UTC](https://discourse.nodered.org/t/customizing-deployment-to-send-settings-json-to-other-nodered-instance/4594/4 "2018-11-05T21:25:07Z")

</div>

Wait, I'm not sure you actually mean that you want to send the "settings" file -- it sounds like you want the Deploy button to send the latest running version of the "flows.json" file, right?

Normally, the deploy button does an [Http POST to the internal admin endpoint](https://nodered.org/docs/api/admin/methods/post/flows/) called `/flows` -- here is the [documentation for this and all the other internal admin apis](https://nodered.org/docs/api/admin/methods/). What I have done in the past is to redirect that data to a remote node-red instance (running, of course). This causes the remote server to immediately replace its current runtime flows with the posted version, and restart the server's runtime. Is this what you are wanting to do?

---

<div class="post-metadata">

**Author:** ![ErickWendel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/erickwendel/32/3563_2.png) [@ErickWendel](https://discourse.nodered.org/u/ErickWendel)\
**Post date:** [6 November 2018 12:34 UTC](https://discourse.nodered.org/t/customizing-deployment-to-send-settings-json-to-other-nodered-instance/4594/5 "2018-11-06T12:34:06Z")

</div>

Sure! It's exactly what I want! Thanks 😃 I'll try
