# Update API endpoint to update a node in Node.RED server without restart

**URL:** <https://discourse.nodered.org/t/update-api-endpoint-to-update-a-node-in-node-red-server-without-restart/14859>\
**Category:** General\
**Created:** [28 August 2019 16:55 UTC](https://discourse.nodered.org/t/update-api-endpoint-to-update-a-node-in-node-red-server-without-restart/14859 "2019-08-28T16:55:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![serardica](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/serardica/32/49093_2.png) [@serardica](https://discourse.nodered.org/u/serardica)\
**Post date:** [28 August 2019 16:55 UTC](https://discourse.nodered.org/t/update-api-endpoint-to-update-a-node-in-node-red-server-without-restart/14859/1 "2019-08-28T16:55:33Z")

</div>

Hi guys!  
I was wondering if there a way of update a node through an API endpoint.  
i.e. I have a node already deployed on Node-RED and I perform a change in the html file, I want this change to be displayed without the need of restarting the server.

---

<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:** [28 August 2019 17:27 UTC](https://discourse.nodered.org/t/update-api-endpoint-to-update-a-node-in-node-red-server-without-restart/14859/2 "2019-08-28T17:27:35Z")

</div>

If you edit a node's html you need to restart Node-RED to pickup the change.

There is no API to avoid doing that.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [29 August 2019 15:26 UTC](https://discourse.nodered.org/t/update-api-endpoint-to-update-a-node-in-node-red-server-without-restart/14859/4 "2019-08-29T15:26:26Z")

</div>

I thought this was quite succinct

> [@knolleary](#):
>
> If you edit a node's html you need to restart Node-RED to pickup the change.
> 
> There is no API to avoid doing that.

(in reply to post by @MParrao who them deleted their post)

---

<div class="post-metadata">

**Author:** ![MParrao](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@MParrao](https://discourse.nodered.org/u/MParrao)\
**Post date:** [29 August 2019 15:31 UTC](https://discourse.nodered.org/t/update-api-endpoint-to-update-a-node-in-node-red-server-without-restart/14859/5 "2019-08-29T15:31:44Z")

</div>

So there is nothing similar as an npm update or something? For example when you deploy the node for first time Node-RED notice this and updates the palette, there is nothing to re-do the install to pick up the changes? (Besides restarting or uninstall and then install again)

---

<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:** [29 August 2019 15:38 UTC](https://discourse.nodered.org/t/update-api-endpoint-to-update-a-node-in-node-red-server-without-restart/14859/6 "2019-08-29T15:38:20Z")

</div>

> [@MParrao](#):
>
> there is nothing similar as an npm update or something?

With any node.js app that is running, if you run `npm update` to upgrade one of its dependencies, you need to restart the node app to load those changes.
