CorefinityCorefinityDocs
Open the Control PanelControl Panel
Cloudflare · 5 of 10

Update a site's Cloudflare zone

auto lets the Control Panel find the zone for the site's domain, manual chooses one of the connection's zones by zone_id, and off stops using Cloudflare for the site.

PUT/api/corestack/sites/{site}/cloudflare-zone

Path parameters

siteintegerRequired

The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.

Body

modestringRequired
automanualoff
zone_idstring or null

Required when mode is manual. The id of one of the connection's zones. Up to 64 characters.

Returns

200 The zone the site now uses, or null, and the mode.

Fields of the 200 answer
modestringRequired
automanualoff
zoneobject or any or nullRequired

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
409deletedThe site, environment or copy has been deleted, or is being deleted. Nothing can be changed on it. Restore a deleted site first if it can still be restored.
422invalidFix the field named in field; errors says why.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X PUT https://manage.corefinity.com/api/corestack/sites/1042/cloudflare-zone \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "auto"
  }'
{
  "mode": "off",
  "zone": null
}
Try it
Held in this tab's memory only. Never stored or sent to us.

This sends a real PUT request and changes your account.

Use a token with only the write scope. How to make one

Was this helpful?
Open in ClaudeOpen in ChatGPT