How to call the HTTP api


How do I call the method reload, as shown in the diagram, and can I call it in the function node? Which method is used?

Hi @lei1

you would use an HTTP Request node and pass in msg.headers set to:

{
    "Content-type": "application/json",
    "Node-RED-Deployment-Type": "reload"
}

image
image


image

The http-response node is only for use with the http-in node, not the http-request node.