Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please add an api for user's rules #6091

Open
user9931 opened this issue Aug 9, 2023 · 2 comments
Open

please add an api for user's rules #6091

user9931 opened this issue Aug 9, 2023 · 2 comments

Comments

@user9931
Copy link

user9931 commented Aug 9, 2023

it will be very handy to have safe method (with api calls) to add / remote / list user rules. Think i'm missing some and checked https://github.com/AdguardTeam/AdGuardHome/tree/master/openapi and there's only /filtering/set_rules so all (maybe long) list of rules are processing on client side, which is not very convinient and reliable when used from external apps/ script.

Rewrite already have its add|list|delete|update but user rules also have $rewrite modifier that allows a way more functional rewrite functionality (along with many other functions) and dont have those add|list|delete|update...

@ainar-g
Copy link
Contributor

ainar-g commented Aug 9, 2023

Do you mean an API to manage singular custom rules? Because AdGuard DNS's UI has that, and it's kind of annoying, if I'm honest, heh. Also, you can technically just maintain your rules in rule lists either hosted somewhere or on the disk.

@zettseb
Copy link

zettseb commented Mar 11, 2024

I second this request heavily.
I need to add further custom rules programmatically (i.e. via the API), but apparently only an overwrite endpoint exists. Since there is not even a read endpoint I see no way of doing this.
Is there a reason why the custom rules API does not provide the same functionality as similar components (e.g. rewrite)?

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

No branches or pull requests

3 participants