# How to PUT output from flow?

**URL:** <https://discourse.nodered.org/t/how-to-put-output-from-flow/89181>\
**Category:** General\
**Tags:** http-request\
**Created:** [2 July 2024 12:50 UTC](https://discourse.nodered.org/t/how-to-put-output-from-flow/89181 "2024-07-02T12:50:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LifePart2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lifepart2/32/92443_2.png) [@LifePart2](https://discourse.nodered.org/u/LifePart2)\
**Post date:** [2 July 2024 12:50 UTC](https://discourse.nodered.org/t/how-to-put-output-from-flow/89181/1 "2024-07-02T12:50:12Z")

</div>

I have a simple flow to adjust the date on some NMEA0183 input to my signalK. (The GPS suffers from rollover error and thinks I am still in 2004, so we need to simply add a bunch of seconds to its output)

But I cannot figure out how to apply the output payload to signalk. I am using PUT to send it to various endpoints, eg localhost:3000/signalk/v1/api/put but whatever endpoint URL I use I get a 401 permission denied error. Clearly I am missing something obvious. What do I need to do to get this to work.

For authentication I have used a bearer token, but I don't think I even get to that point, I think the endpoint URL's I am using don't exist. Do I need to create them somewhere?

I have a simple test script here:

```auto
[
    {
        "id": "1",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": ""
    },
    {
        "id": "inject",
        "type": "inject",
        "z": "1",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "headers",
                "v": "{\"Authorization\":\"Bearer my-token\"}",
                "vt": "json"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"context\":\"vessels.self\",\"updates\":[{\"source\":{\"label\":\"node-red\"},\"timestamp\":\"2024-06-29T12:34:56Z\",\"values\":[{\"path\":\"navigation.datetime\",\"value\":\"2024-06-29T12:34:56Z\"}]}]}",
        "payloadType": "json",
        "x": 150,
        "y": 100,
        "wires": [["send-request"]]
    },
    {
        "id": "send-request",
        "type": "http request",
        "z": "1",
        "name": "Send Adjusted Date",
        "method": "PUT",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://localhost:3000/signalk/v1/api/put/",
        "tls": "",
        "x": 400,
        "y": 100,
        "wires": [["debug-response"]]
    },
    {
        "id": "debug-response",
        "type": "debug",
        "z": "1",
        "name": "Debug Response",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "x": 650,
        "y": 100,
        "wires": []
    }
]

```

---

<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:** [30 September 2024 12:50 UTC](https://discourse.nodered.org/t/how-to-put-output-from-flow/89181/2 "2024-09-30T12:50:48Z")

</div>

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