1
General Discussion / Re: Unable to add IP addresses to an alias using API
« on: March 27, 2023, 01:10:29 am »
so after a little try and error, I got it to run, the problem was the URL, this must have the alias in the URL:
Code: [Select]
var payload = {
"address": msg.payload
};
var url = https://OPNSESNE.lan/api/firewall/alias_util/add/AuthUsers;
msg.url = url; msg.method = "POST"; msg.headers = { "Content-Type": "application/json" }; msg.payload = JSON.stringify(payload);
return msg;