Adding a new control parameter that would allow a PATCH request to append the submitted array values to the existing array instead of replacing it #511
Labels
feature request
New feature or request
Is your feature request related to existing pfSense functionality that is missing from the API? Please describe.
There was some endpoints available in the v1 API which we could add an entry to the current available array values such as firewall Alias. This seems to be not available in v2 API.
Is your feature request related to a problem? Please describe.
There are many cases which we need to trigger firewall via an external application (such as fail2ban) to add an entry to firewall alias or other array values.
Describe the solution you'd like
Adding a new control parameter that would allow a PATCH request to append the submitted array values to the existing array instead of replacing it.
Describe alternatives you've considered
As of now, to add new alias address entries, you can follow these steps:
Perform a GET request to retrieve the current values of your alias.
In your code, take the address array obtained from the GET request and append your new value(s).
Submit a PATCH request to update the array with all the values.
The text was updated successfully, but these errors were encountered: