Please follow the below template, it will help us to help you!
Expected Behaviour:
Calls to /admin/api.php should keep Pi-hole disabled for the allotted time specified in the disable parameter.
Actual Behaviour:
Pi-hole will stay disabled for only a few seconds and then bounce right back up to "active" again. I am passing durations of 500 seconds through. This only seems to be the case when I make calls through the /api.php page. Disabling Pi-hole through the /admin webpage works as expected and will stay down for the selected time.
The only difference I can see is that the Web Interface is using it's own API key that is different from the only listed on /admin/scripts/pi-hole/php/api_token.php. I tried using that web interface key instead but any calls using it outside the web interface are rejected.