const http = require("http");
let saymonHostname = <...>
let path = "/node/api/flows";
let auth = "Basic " + Buffer.from(login + ":" + password).toString("base64");
"hostname": saymonHostname,
"Content-Type": "application/json"
let req = http.request(options, function (res) {
res.on("data", function (chunk) {
res.on("end", function (chunk) {
let body = Buffer.concat(chunks);
console.log(body.toString());
res.on("error", function (error) {
let data = JSON.stringify({
"5e4e84fa39438824a1046829",
"5e552961d4511026d723154d",
"5e6f477fd462c02529b06eb7"