1
24.1 Legacy Series / toggleRule api
« on: June 27, 2024, 04:32:39 pm »
hello, I have read the different articles on the subject but still I can't figure it out. I simply want to disable / enable a rule with the API.
ex :
result :
with postman :
I tried several syntax found on the forum, docs, tutorials, but no positive results. However when I make API requests on the aliases it works.
thank you in advance for your help
ex :
Code: [Select]
curl -XPOST -k -u "mykey":"mysecret" https://myfirewall:4443/api/firewall/filter/toggleRule/86833879d5f092ffefd6c7ea13224c43/1
result :
Code: [Select]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>411 Length Required</title>
</head>
<body>
<h1>411 Length Required</h1>
</body>
</html>
with postman :
Code: [Select]
{
"result": "failed"
}
I tried several syntax found on the forum, docs, tutorials, but no positive results. However when I make API requests on the aliases it works.
thank you in advance for your help