How to disable pi-hole DNS filtering for a specific user programmatically?

Hello! I'm sorry if it's a silly or a duplicate question but I couldn't really find the answer to this.

I have a user in my local network that has a static IP, of course. And I'd like to create a program that enables and disables the ands blocking for that user under certain conditions.
I see 2 ways how it can work: either using CLI or Web API. I couldn't find a way to make it work with CLI and I didn't find anything about Web API other than the deprecated repository or the non-merged PR.

Is there any way I missed to achieve the expected behavior?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.