API referenceSections

Replace them; sites already set up keep their own values

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/waf/defaults

Replace them; sites already set up keep their own values

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

  • new_site_mode string required

    Mode a site created on the provider's servers starts in, when its plan includes the firewall and the server has URL Rewrite and ARR (R34). Built in: off. Left out of a PUT means off.

    Allowed values: "off" "detect" "block"
  • paranoia integer required
  • threshold integer required
  • fail_mode string required
    Allowed values: "open" "closed"
  • body_limit_kb integer required
  • over_limit string required
    Allowed values: "partial" "reject"
Example
{
  "new_site_mode": "off",
  "paranoia": 0,
  "threshold": 0,
  "fail_mode": "open",
  "body_limit_kb": 0,
  "over_limit": "partial"
}

Responses

200 Saved

Content type: application/json

Fields of WAFDefaults are shown above.

Example
{
  "new_site_mode": "off",
  "paranoia": 0,
  "threshold": 0,
  "fail_mode": "open",
  "body_limit_kb": 0,
  "over_limit": "partial"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required