Hey guys,
How do I get this to work? It says “403 Forbidden”. I don’t know how to correctly pass it in.
curl -X POST "http://Adguard_IP_Address:8083/control/protection" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Basic 'echo -n "admin_username:admin_password" | base64'"\
-d '{"enabled":false,"duration":60000}'
This is what I have so far:
rest_command:
adguard_disable_5_min:
url: http://192.168.1.1:8080/control/protection
method: POST
headers:
Authorization: !secret adguard_auth_header
Content-Type: 'application/json'
payload: '{ "enabled" : false, "timer" : 300000 }'
content_type: 'application/json; charset=utf-8'
verify_ssl: false
secrets.yaml
adguard_auth_header: Basic 'echo -n "admin_username:admin_password" | base64'