Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Looks like you are using disable in your request body instead of disabled. Here's an example curl request I just used for disabling an existing firewall rule:

curl -s -k -u admin:pfsense -X PUT https://localhost/api/v1/firewall/rule -d '{"tracker": 1714079391, "disabled": true}'

After running, the rule now shows as disabled:

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@winstonw
Comment options

Answer selected by winstonw
Comment options

You must be logged in to vote
2 replies
@jaredhendrickson13
Comment options

@magtimmermans
Comment options

Comment options

You must be logged in to vote
2 replies
@jaredhendrickson13
Comment options

@schneemaier
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants