# Change javascript code in function node

**URL:** <https://discourse.nodered.org/t/change-javascript-code-in-function-node/15891>\
**Category:** General\
**Created:** [25 September 2019 14:24 UTC](https://discourse.nodered.org/t/change-javascript-code-in-function-node/15891 "2019-09-25T14:24:08Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [26 September 2019 17:41 UTC](https://discourse.nodered.org/t/change-javascript-code-in-function-node/15891/13 "2019-09-26T17:41:00Z")

</div>

I'm locking this thread as the OP already had an active thread on this topic and we can't keep replying to the same thing in two places.

> [@Import rules by rest api](https://discourse.nodered.org/t/import-rules-by-rest-api/15855):
>
> Hi, I have multiple wind turbines which are publishing data on multiple mqtt topics and using function node I am able to apply rules to filter that data and again publishing that filtered data on different mqtt topics in node red. But my concern here is,I am able to apply the rules as a developer but if an end user wants to apply or change the specific rule,how he can change that as he doesn't have knowledge of node red. Is there any way to call rest-api in node which would send the rules alo…

---

_[View the full topic](https://discourse.nodered.org/t/change-javascript-code-in-function-node/15891)._
