CorefinityCorefinityDocs
Open the Control PanelControl Panel
Cloudflare · 9 of 10

Update an SSL rule for domains

Sets Full or Full (strict) for the named domains of the site, in their Cloudflare zone, and leaves the zone's own SSL mode as it is. The same rule asked for twice is one rule.

POST/api/corestack/sites/{site}/cloudflare/ssl-rules

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

hostsarray of stringsRequired

Domains of this site, all in one connected Cloudflare zone of your company. Together they must fit one rule: the lengths of the names added up, plus three for each name, come to at most 4,080 characters. A longer list is refused invalid on hosts; set the names in two rules. Up to 50 items.

sslstringRequired

full for Full, strict for Full (strict).

fullstrict

Returns

200 The rule, as Cloudflare now has it.

Fields of the 200 answer
ruleobjectRequired

One SSL rule: the SSL mode Cloudflare uses for the named domains of the site.

Fields
hostsarray of stringsRequired

The domains the rule names, sorted.

idintegerRequired

The {rule} a removal takes. At least 1.

removed_atstring or nullRequired

Format: date-time.

set_atstring or nullRequired

Format: date-time.

site_idinteger or nullRequired

The site row the rule was set for.

sslstringRequired

full is Full, strict is Full (strict).

fullstrict
statestringRequired

setting while it is being written, active once Cloudflare has it, removed, failed when it could not be written, and kept when it was changed in Cloudflare afterwards and so was left there.

settingactiveremovedkeptfailed
state_reasonstring or nullRequired

Why the rule is in its state, when there is something to say.

zoneobjectRequired

The Cloudflare zone the rule is in.

Fields
idstringRequired
namestringRequired

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.
409busyAnother operation is running on the site. Wait for it to finish.
409no_zoneThe site's domain is not in a connected Cloudflare zone, or Cloudflare is off for the site. Connect the Cloudflare account that holds the zone.
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.
409managed_elsewhereThis site is read-only here. Change it in the control panel that manages it.
409not_connectedThe outside account this needs is not connected for your company. Connect it first; the message names it.
409provisioningThe site is still being created. Try again in a few minutes.
409rule_editedThe Cloudflare rule was changed in Cloudflare after the Control Panel set it, so it was left as it is. Change or remove it in Cloudflare.
422rules_not_allowedThe Cloudflare token may not change the zone's rules. Allow Zone, Config Rules, Edit on the token, or connect one that can.
422invalidFix the field named in field; errors says why.
422not_connectedThe outside account this needs is not connected for your company. Connect it first; the message names it.
429rate_limitedWait for the seconds in Retry-After.
502unavailableThis is not available for the site or environment, or not at the moment. Read the message; try again later where it says so, or contact support.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X POST https://manage.corefinity.com/api/corestack/sites/1042/cloudflare/ssl-rules \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "hosts": [
      "harbourandfinch.example.com",
      "www.harbourandfinch.example.com"
    ],
    "ssl": "full"
  }'
{
  "rule": {
    "hosts": [
      "harbourandfinch.example.com",
      "www.harbourandfinch.example.com"
    ],
    "id": 318,
    "removed_at": null,
    "set_at": "2026-11-03T09:16:40+00:00",
    "site_id": 1042,
    "ssl": "full",
    "state": "active",
    "state_reason": null,
    "zone": {
      "id": "zone-example-1",
      "name": "harbourandfinch.example.com"
    }
  }
}
Try it

Try it is off for this endpointIt has not been cleared for the console. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT