It is possible to unplug a site from the API. The operation will operate at the DNS level. The traffic will then be routed to the origin.

You can find the API token on your dashboard and the identifier of your configuration in the dashboard URL of your configuration. For example, https://my.fasterize.com/en/website_configs/1/dashboard has for configuration ID 1.

 # Unplug the site
curl -i -H 'Content-Type: application / json' -H 'Authorization: $ myApiToken' -X PATCH https://api.fasterize.com/v1/configs/$config_id/ -d '{"deployRatio": 0} '

# Plug the site
curl -i -H 'Content-Type: application / json' -H 'Authorization: $ myApiToken' -X PATCH https://api.fasterize.com/v1/configs/$config_id/ -d '{"deployRatio": 100} '