1
General Discussion / Re: Assistance with Adding a trafficshaper through Rest API
« on: February 01, 2023, 04:20:51 pm »
I've been having the same issue, and took a while to go through the forum.
This topic has the solution:
https://forum.opnsense.org/index.php?topic=30356.msg146448#msg146448
But for sake of completeness, your JSON body should look this this:
'{"pipe":{"number":"100","enabled":"1","bandwidth":"300","bandwidthMetric":"Kbit","mask":"none","codel_enable":"0","codel_ecn_enable":"0","pie_enable":"0","description":"TestPipe"}}'
This topic has the solution:
https://forum.opnsense.org/index.php?topic=30356.msg146448#msg146448
But for sake of completeness, your JSON body should look this this:
'{"pipe":{"number":"100","enabled":"1","bandwidth":"300","bandwidthMetric":"Kbit","mask":"none","codel_enable":"0","codel_ecn_enable":"0","pie_enable":"0","description":"TestPipe"}}'