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


Please contact our support team to obtain the API token. Make sure you also have the configuration ID, which you can find in the URL of your configuration dashboard.

For example, https://dashboard.fasterize.com/feo/projects/64/configuration/1, has for configuration ID 1.


# Unplug a domain

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



# Plug a domain

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