url = 'http://192.168.122.230/api/firewall/alias/addItem/xyzzy'headers = {'Content-Type': 'application/json'} r = requests.post(url, headers=headers, data='{"name":"xyzzy","content":"192.168.5.5","enabled":"1","type":"host"}', verify=False, #'/home/fweis/Documents/2019/OPNSense', auth=(api_key, api_secret))
r = requests.post(url, json={'name':'xyzzy','content':'192.168.5.5','enabled':'1','type':'host'}, verify=False, auth=(api_key, api_secret))