Nginx Proxy Manager - enable / disable a redirection by automation?

Is there any way to enable / disable a redirection from an automation ?

I have set up external access to a camera connected to my Octopi print server watching my 3D printer, but when the print has finished (the HA is monitoring the Octopi) I want the external camera access disabled.

A way? possibly…

I basically have full control over my router from HA, but my router runs OpenWrt and I created an custom component allowing this control.

Bottom-line: It completely depends on your router, its OS, the openness of the OS and if someone created the component allowing that control from HA.

I’m hoping that control can be achieved by interaction with the nginx add-in rather than a router specific solution.