[ { "id": "71b7f5274e028602", "type": "function", "z": "819aab96f50189bf", "name": "apply", "func": "\nvar newMsg = {};\nnewMsg.headers = {};\nnewMsg.headers['Accept'] = '*/*';\nnewMsg.headers['Connection'] = 'keep-alive';\nnewMsg.headers['Authorization'] = global.get(\"authorization\");\nnewMsg.headers['Content-Type'] = 'multipart/form-data';\n\nnewMsg.url = \"https://\" + global.get(\"IP\") + \"/setup/api/v1/apply\";\nnewMsg.payload = \n{\n \"path\": \"/media/sda1/setups/2024-03-08_09-10-58_ctrlx-setup.zip\",\n \"password\": \"secret\"\n};\n\nreturn newMsg;\n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 410, "y": 760, "wires": [ [ "8530110877a35dcc", "c9708c067fe07ce4" ] ] }, { "id": "8530110877a35dcc", "type": "http request", "z": "819aab96f50189bf", "name": "POST apply", "method": "POST", "ret": "obj", "paytoqs": "ignore", "url": "", "tls": "86e288cf.2f27a", "persist": false, "proxy": "", "insecureHTTPParser": false, "authType": "", "senderr": false, "headers": [], "x": 670, "y": 760, "wires": [ [ "a252a0f6a2343516" ] ] }, { "id": "a252a0f6a2343516", "type": "debug", "z": "819aab96f50189bf", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 890, "y": 820, "wires": [] }, { "id": "c9708c067fe07ce4", "type": "debug", "z": "819aab96f50189bf", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 590, "y": 840, "wires": [] }, { "id": "61478b57d998f66d", "type": "inject", "z": "819aab96f50189bf", "name": "inject", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "true", "payloadType": "bool", "x": 210, "y": 760, "wires": [ [ "71b7f5274e028602" ] ] }, { "id": "86e288cf.2f27a", "type": "tls-config", "name": "Authorization", "cert": "", "key": "", "ca": "", "certname": "", "keyname": "", "caname": "", "servername": "Whatever", "verifyservercert": false } ]