CorefinityCorefinityDocs
Open the Control PanelControl Panel
Firewall · 14 of 20

Detach a firewall preset

Detaches a preset from its owner. Send the preset's slug in confirm_preset, in the request body. The preset's ranges stop being allowed through this owner.

DELETE/api/firewall/preset-subscriptions/{subscription}

Path parameters

subscriptionintegerRequired

The id of an attached preset, as the lists answer it in presets[].id. Digits only. At least 1.

Body

confirm_presetstringRequired

The preset's slug. Up to 64 characters.

Returns

202 The preset was detached. Follow change_id with GET /firewall/changes/{change}. Poll the operation until it finishes.

Fields of the 202 answer
change_idinteger or nullRequired

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

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.
422confirm_mismatchSend the confirmation exactly as the field named in field asks for it.
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 DELETE https://manage.corefinity.com/api/firewall/preset-subscriptions/310 \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "confirm_preset": "github-actions"
  }'
{
  "change_id": 5314
}
Try it

Try it is off for this endpointIt deletes data that cannot be brought back. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT