I want to pass a message to the outside using REST

I want to pass messages externally using REST.
I tried the code below.
When I checked the execution results in the browser, only the Label item had disappeared. I would like to know the solution.

[
    {
        "id": "335871fe09561861",
        "type": "tab",
        "label": "REST検証",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "6a012f581242f45f",
        "type": "inject",
        "z": "335871fe09561861",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            },
            {
                "p": "value",
                "v": "",
                "vt": "date"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payloadType": "date",
        "x": 190,
        "y": 80,
        "wires": [
            [
                "3c28209899af4a9d"
            ]
        ]
    },
    {
        "id": "3c28209899af4a9d",
        "type": "function",
        "z": "335871fe09561861",
        "name": "",
        "func": "msg.payload = [ {  \"id\": \"FA1041\",  \"label\": msg.value,  \"Deposit rate\": 0.02,  \"FPY\": 0.98,  \"SN\": \"FA1041202206081124\" }]\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 410,
        "y": 120,
        "wires": [
            [
                "d0511fc6ba8a2f7b",
                "06d908fc6d26fcf4"
            ]
        ]
    },
    {
        "id": "45079605864f325d",
        "type": "http in",
        "z": "335871fe09561861",
        "name": "resttest",
        "url": "resttest",
        "method": "get",
        "upload": false,
        "swaggerDoc": "",
        "x": 220,
        "y": 200,
        "wires": [
            [
                "3c28209899af4a9d"
            ]
        ]
    },
    {
        "id": "d0511fc6ba8a2f7b",
        "type": "http response",
        "z": "335871fe09561861",
        "name": "",
        "statusCode": "",
        "headers": {},
        "x": 620,
        "y": 200,
        "wires": []
    },
    {
        "id": "06d908fc6d26fcf4",
        "type": "debug",
        "z": "335871fe09561861",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 620,
        "y": 100,
        "wires": []
    }
]

Welcome to the forums @takoyaki1211

We can't import that flow as provided, please use 3 backticks (```)

```
Flow Export Here
```

But... if by I want to pass messages externally using REST you mean you want to send Data outside of Node RED, then you need the HTTP Request Node not the HTTP In

The HTTP In node is for sending data into Node RED, not away from it

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.