Unplug and reconnect a site from the API

Modified on Mon, 04 Dec 2023 at 03:37 PM

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 }'


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article