1
21.1 Legacy Series / Very strange API
« on: June 29, 2021, 08:38:54 am »
Hello.
I heed to disable one of my routes by API. I run this command
But then I run this command again I got {"result":"Enabled"}
I run the one again and got {"result":"Disabled"}
Why? I thought I have to change command to {"disabled":"0"} for enabling. No?
I heed to disable one of my routes by API. I run this command
Quote
curl -X POST -d '{"disabled":"1"}' -H "Content-Type: application/json" -k -u %KEY%:%SECRET% https://10.10.1.1/api/routes/routes/toggleroute/2c7375ab-2500-45a5-a952-50c34ea26b9dand got {"result":"Disabled"}
But then I run this command again I got {"result":"Enabled"}
I run the one again and got {"result":"Disabled"}
Why? I thought I have to change command to {"disabled":"0"} for enabling. No?