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.
Path parameters
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
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.
full for Full, strict for Full (strict).
fullstrictReturns
200 The rule, as Cloudflare now has it.
Fields of the 200 answer
One SSL rule: the SSL mode Cloudflare uses for the named domains of the site.
Fields
The domains the rule names, sorted.
The {rule} a removal takes. At least 1.
Format: date-time.
Format: date-time.
The site row the rule was set for.
full is Full, strict is Full (strict).
fullstrictsetting 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.
settingactiveremovedkeptfailedWhy the rule is in its state, when there is something to say.
The Cloudflare zone the rule is in.
Fields
If it is refused
| Status | Reason | What to do |
|---|---|---|
401 | none | Send a valid token as Authorization: Bearer <token>. |
403 | company_unavailable | Your company is unavailable. |
403 | scope_required | Use a token with the scope named in scope. |
403 | two_factor_required | Turn on two-factor on your account, then send again. |
404 | feature_off | This feature is not on for your organisation yet. |
409 | busy | Another operation is running on the site. Wait for it to finish. |
409 | no_zone | The 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. |
409 | deleted | The 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. |
409 | managed_elsewhere | This site is read-only here. Change it in the control panel that manages it. |
409 | not_connected | The outside account this needs is not connected for your company. Connect it first; the message names it. |
409 | provisioning | The site is still being created. Try again in a few minutes. |
409 | rule_edited | The 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. |
422 | rules_not_allowed | The Cloudflare token may not change the zone's rules. Allow Zone, Config Rules, Edit on the token, or connect one that can. |
422 | invalid | Fix the field named in field; errors says why. |
422 | not_connected | The outside account this needs is not connected for your company. Connect it first; the message names it. |
429 | rate_limited | Wait for the seconds in Retry-After. |
502 | unavailable | This 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"
}'use Illuminate\Support\Facades\Http;
$response = Http::withToken(env('COREFINITY_TOKEN'))
->acceptJson()
->post('https://manage.corefinity.com/api/corestack/sites/1042/cloudflare/ssl-rules', [
'hosts' => [
'harbourandfinch.example.com',
'www.harbourandfinch.example.com',
],
'ssl' => 'full',
]);
$data = $response->json();const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/cloudflare/ssl-rules', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
hosts: [
'harbourandfinch.example.com',
'www.harbourandfinch.example.com',
],
ssl: 'full',
}),
});
// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);import os
import requests
res = requests.post(
"https://manage.corefinity.com/api/corestack/sites/1042/cloudflare/ssl-rules",
headers={
"Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
"Accept": "application/json",
},
json={
"hosts": [
"harbourandfinch.example.com",
"www.harbourandfinch.example.com",
],
"ssl": "full",
},
)
data = res.json() if res.content else None{
"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"
}
}
}{
"message": "Unauthenticated."
}{
"code": "company_unavailable",
"message": "Your company is unavailable.",
"reason": "company_unavailable"
}{
"code": "feature_off",
"message": "Not found.",
"reason": "feature_off"
}{
"code": "busy",
"message": "This SSL rule is being changed. Try again in a moment.",
"reason": "busy"
}{
"code": "rules_not_allowed",
"message": "Cloudflare did not say whether the token may change Configuration Rules on harbourandfinch.example.com, so nothing was written. Check the token's permissions, then try again.",
"reason": "rules_not_allowed"
}{
"code": "rate_limited",
"message": "Too many Cloudflare changes this hour. Try again later.",
"reason": "rate_limited",
"retry_after_seconds": 3600
}{
"code": "unavailable",
"message": "Cloudflare did not answer. Try again in a minute.",
"reason": "unavailable"
}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.