Disabling Pihole for 5 minutes via URL

Hi,

with version 5 I was able to disable the blocking for a few minutes using the API.
I was able to use a URL like this: pi.hole/admin/api.php?disable=300&auth=LongApiToken

How may I do the same with version 6? My wife will be very sad, if it cannot be easily deactivated... :wink:

I already generated an app password, since there is no API token anymore. But I still cant get it running.

If I try:
https://MyIpAddress/api/disable?auth=LongAppPw=&duration=300

I only get:
{"error":{"key":"not_found","message":"Not found","hint":"/api/disable"},"took":0.00033164024353027344}

So, how may this work with version 6?

Thanks and best regards
Felix

Using a single URL to change the blocking status is not possible with v6 if you use a password to prevent access to the web interface.
Now you need to authenticate first, obtain a valid SID and us this to contact the right API endpoint for the action you want to trigger.

See Pi-hole API - Pi-hole documentation

The endpoint you are looking for is /dns/blockig(See Pi-hole API documentation)

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