# How to send REST request to nodered server to set/see message payload

**URL:** <https://discourse.nodered.org/t/how-to-send-rest-request-to-nodered-server-to-set-see-message-payload/3473>\
**Category:** General\
**Created:** [26 September 2018 20:28 UTC](https://discourse.nodered.org/t/how-to-send-rest-request-to-nodered-server-to-set-see-message-payload/3473 "2018-09-26T20:28:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aoighost](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aoighost/32/358_2.png) [@aoighost](https://discourse.nodered.org/u/aoighost)\
**Post date:** [26 September 2018 20:28 UTC](https://discourse.nodered.org/t/how-to-send-rest-request-to-nodered-server-to-set-see-message-payload/3473/1 "2018-09-26T20:28:58Z")

</div>

Is there any way to send a REST request to node red and set/see msg.payload?

---

<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 2018 21:33 UTC](https://discourse.nodered.org/t/how-to-send-rest-request-to-nodered-server-to-set-see-message-payload/3473/2 "2018-09-26T21:33:03Z")

</div>

Hi - yes. There are lots of examples of HTTP endpoints in the cookbook: [https://cookbook.nodered.org/http/](https://cookbook.nodered.org/http/)

---

<div class="post-metadata">

**Author:** ![aoighost](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aoighost/32/358_2.png) [@aoighost](https://discourse.nodered.org/u/aoighost)\
**Post date:** [26 September 2018 21:57 UTC](https://discourse.nodered.org/t/how-to-send-rest-request-to-nodered-server-to-set-see-message-payload/3473/3 "2018-09-26T21:57:58Z")

</div>

Thanks, i appreciate it. Is there any way to pull in a rest request the parameters that a node will accept as input?

---

<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 2018 23:09 UTC](https://discourse.nodered.org/t/how-to-send-rest-request-to-nodered-server-to-set-see-message-payload/3473/4 "2018-09-26T23:09:50Z")

</div>

Hi - sorry, I'm not entirely sure what you mean by that. The cookbook shows how to pass in parameters etc in the http requests. You can then use a Change node to move those parameters to whatever message property another node expects it to be under.

---

<div class="post-metadata">

**Author:** ![aoighost](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aoighost/32/358_2.png) [@aoighost](https://discourse.nodered.org/u/aoighost)\
**Post date:** [27 September 2018 10:24 UTC](https://discourse.nodered.org/t/how-to-send-rest-request-to-nodered-server-to-set-see-message-payload/3473/5 "2018-09-27T10:24:31Z")

</div>

Alright. Basically what I'm asking is this. Is there a REST endpoint that will allow me to get a list of the parameters the node will accept. As an example, if it processes a name parameter, a color parameter, etc. Is it possible to send a request to see what the node can process. I'm trying to create a UI as another editor and trying to use REST to get info about a node to allow for dragging and dropping in to a list of what the nodes in the flow can process. This way if a node can process an IP, I want to send a request and it says "yeah, this node will accept an IP" and then I can drag/drop an IP in to a window to process. The same goes for output as well preferably.

---

<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:** [27 September 2018 10:26 UTC](https://discourse.nodered.org/t/how-to-send-rest-request-to-nodered-server-to-set-see-message-payload/3473/6 "2018-09-27T10:26:13Z")

</div>

No - we don't have that information. Node's don't share any metadata about what they accept or send.

---

<div class="post-metadata">

**Author:** ![aoighost](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aoighost/32/358_2.png) [@aoighost](https://discourse.nodered.org/u/aoighost)\
**Post date:** [27 September 2018 10:55 UTC](https://discourse.nodered.org/t/how-to-send-rest-request-to-nodered-server-to-set-see-message-payload/3473/7 "2018-09-27T10:55:45Z")

</div>

Damn, that would be a useful feature. Hopefully something like that gets put in for .20 or .21.
