How to disable pi-hole for 5 minutes using Curl or Powershell

Ho can I disable pihole for 5 minutes using a curl or Powershell Command.
What I've tried is:
curl -X GET "http://cs1:60080/admin/api.php?disable=360"
But I get pi-hole answer:
Session expired! Please re-login on the Pi-hole dashboard

Any idea

/Willi/

You might need to add the API token to access this endpoint:

stonerl thank you very much for your hint. Because I have no Admin passwort I removed "&auth=" completely. But adding just "&auth=" make it run!

/Willi/

Any chance there's a way to target just one device, rather than disable all blocking, for X seconds? Suggestion being add to a group then disable the group (or enable exclusionGroup, I'm easy), that group after X sleep? I guess what I'm asking is, does the API support such a request? If so where would one source the applicable syntax?

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