CorefinityCorefinityDocs
Open the Control PanelControl Panel
Firewall · 9 of 20

Update a firewall entry

Changes an entry's comment, expiry or scope. Send at least one of them. The address itself cannot be changed: remove the entry and add another.

PATCH/api/firewall/entries/{entry}

Path parameters

entryintegerRequired

The id of a firewall entry, as the lists answer it in id. Digits only. At least 1.

Body

commentstring or null

The new comment. Null removes it. Up to 200 characters.

expires_in_daysinteger or null

Counted from now. Null removes the expiry. After how many days the address stops being allowed. Null, or left out, for no expiry.

13090365null
Fields
scopestring

What the address may reach. ssh is SSH only, web the website only, both both.

bothsshweb

Returns

200 The entry as it is now. change_id is null when nothing needs applying, as after a new comment.

Fields of the 200 answer
change_idinteger or nullRequired

The change to follow with GET /firewall/changes/{change}. Null when nothing needs applying.

covered_bystring or nullRequired

Set when an entry at another level already allows the address: the level that does.

agencycompanywebsiteenvironmentuserpresethttp_auth_rulenull
entryobjectRequired

One address or range on a firewall list.

Fields
added_byobjectRequired

Who added an address or made a change.

Fields
namestring or nullRequired

Null when the person has been removed, or when Corefinity support added the address.

on_behalf_ofstring or nullRequired

The person Corefinity support added it for.

supportbooleanRequired

True when Corefinity support added the address for a customer.

carried_fromstring or nullRequired

Where a carried address came from.

changed_atstringRequired

When the entry last changed where it applies. Compare it with a target's applied_at to tell whether the change is live there. Format: date-time.

cidrstringRequired

The address in CIDR form. A single address reads /32 (IPv6 /128). Removing the entry asks you to send this back.

commentstring or nullRequired
created_atstringRequired

Format: date-time.

decision_reasonstring or nullRequired

Corefinity's reason, once a range request is rejected.

editablebooleanRequired

Whether you may change or remove the entry.

expires_atstring or nullRequired

When the address stops being allowed. Null for no expiry. Format: date-time.

familyintegerRequired

The IP version.

46
idintegerRequired

The entry id the /firewall/entries/{entry} endpoints take.

layerstringRequired

The level the address comes from, as you see it. agency is an address of your agency.

agencycompanywebsiteenvironmentuserpresethttp_auth_rule
ownerobjectRequired

Where an address is held: a company, a website, an environment or a person. http_auth_rule is an address carried over with a password-protected path.

Fields
idintegerRequired

At least 1.

namestringRequired
typestringRequired
companywebsiteenvironmentuserhttp_auth_rule
pathstring or nullRequired

The protected path of a carried http_auth_rule address.

request_reasonstring or nullRequired

The reason given with a range request.

scopeobjectRequired

What an address may reach.

Fields
sshbooleanRequired

The address may connect over SSH.

webbooleanRequired

The address sees the website without the HTTP authentication login or the maintenance page.

sourcestringRequired

How the entry came to be, such as manual, one_click (the address you were calling from) or an import.

manualone_clickon_behalfip_whitelistlegacy_importlegacy_usagegcp_rule_importlegacy_deltaplatform_seedhttp_auth_carry
statusstringRequired

pending_approval is a range request waiting for Corefinity. removing lasts until the address is gone everywhere.

activepending_approvalrejectedremovingexpired
web_pausedbooleanRequired

True while the address's website access is paused by the platform.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403firewall_not_editableYou can see this entry but you cannot change it.
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.
404not_foundNot found.
409firewall_state_conflictThis entry has changed. Reload and try again.
422firewall_scope_invalidThat scope cannot apply to this address here.
422invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
429firewall_throttledToo many firewall changes. Wait a minute and try again.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X PATCH https://manage.corefinity.com/api/firewall/entries/9001 \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "comment": "Head office"
  }'
{
  "change_id": 5311,
  "covered_by": null,
  "entry": {
    "added_by": {
      "name": "Eleanor Finch",
      "on_behalf_of": null,
      "support": false
    },
    "carried_from": null,
    "changed_at": "2026-11-06T09:16:40Z",
    "cidr": "203.0.113.7/32",
    "comment": "Office",
    "created_at": "2026-11-01T10:02:44Z",
    "decision_reason": null,
    "editable": true,
    "expires_at": null,
    "family": 4,
    "id": 9001,
    "layer": "company",
    "owner": {
      "id": 1204,
      "name": "Harbour & Finch",
      "type": "company"
    },
    "path": null,
    "request_reason": null,
    "scope": {
      "ssh": true,
      "web": false
    },
    "source": "manual",
    "status": "active",
    "web_paused": false
  }
}
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