# Set http api command

**URL:** <https://discourse.nodered.org/t/set-http-api-command/65731>\
**Category:** General\
**Created:** [28 July 2022 05:52 UTC](https://discourse.nodered.org/t/set-http-api-command/65731 "2022-07-28T05:52:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [28 July 2022 05:52 UTC](https://discourse.nodered.org/t/set-http-api-command/65731/1 "2022-07-28T05:52:20Z")

</div>

Hi, I want to set my go-e with http api command as described here:

> <https://github.com/goecharger/go-eCharger-API-v2/blob/main/http-en.md#setting-values>

But my attempts fail:

```auto
[
    {
        "id": "41ac642c54b4a786",
        "type": "http request",
        "z": "32e1a23f.66043e",
        "name": "Phasen",
        "method": "GET",
        "ret": "obj",
        "paytoqs": "body",
        "url": "http://192.168.168.42/api/set?psm={{msg.payload}}",
        "tls": "",
        "persist": false,
        "proxy": "",
        "authType": "",
        "senderr": false,
        "credentials": {},
        "x": 1240,
        "y": 340,
        "wires": [
            [
                "4851dd6256e59b3f"
            ]
        ]
    },
    {
        "id": "df0003900f591f61",
        "type": "inject",
        "z": "32e1a23f.66043e",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 1050,
        "y": 340,
        "wires": [
            [
                "41ac642c54b4a786"
            ]
        ]
    },
    {
        "id": "4851dd6256e59b3f",
        "type": "debug",
        "z": "32e1a23f.66043e",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1450,
        "y": 340,
        "wires": []
    }
]

```

Any idea?

Greetings

---

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [28 July 2022 05:55 UTC](https://discourse.nodered.org/t/set-http-api-command/65731/2 "2022-07-28T05:55:02Z")

</div>

oh I got it:  
It must be: [http://192.168.168.42/api/set?psm={{payload}](http://192.168.168.42/api/set?psm=%7B%7Bpayload%7D)} not {{msg.payload}} 🤪

---

<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:** [11 August 2022 05:55 UTC](https://discourse.nodered.org/t/set-http-api-command/65731/3 "2022-08-11T05:55:18Z")

</div>

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