# I want to pass a message to the outside using REST

**URL:** <https://discourse.nodered.org/t/i-want-to-pass-a-message-to-the-outside-using-rest/83852>\
**Category:** General\
**Tags:** http-request, http-in\
**Created:** [20 December 2023 08:15 UTC](https://discourse.nodered.org/t/i-want-to-pass-a-message-to-the-outside-using-rest/83852 "2023-12-20T08:15:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![takoyaki1211](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@takoyaki1211](https://discourse.nodered.org/u/takoyaki1211)\
**Post date:** [20 December 2023 08:15 UTC](https://discourse.nodered.org/t/i-want-to-pass-a-message-to-the-outside-using-rest/83852/1 "2023-12-20T08:15:07Z")

</div>

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.

```auto
[
    {
        "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": []
    }
]

```

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [20 December 2023 08:29 UTC](https://discourse.nodered.org/t/i-want-to-pass-a-message-to-the-outside-using-rest/83852/2 "2023-12-20T08:29:15Z")

</div>

Welcome to the forums @takoyaki1211

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

````auto
```
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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 February 2024 08:30 UTC](https://discourse.nodered.org/t/i-want-to-pass-a-message-to-the-outside-using-rest/83852/3 "2024-02-18T08:30:10Z")

</div>

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