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/defaultsReplace them; sites already set up keep their own values
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
new_site_modestring requiredMode 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"paranoiainteger requiredthresholdinteger requiredfail_modestring requiredAllowed values:"open""closed"body_limit_kbinteger requiredover_limitstring requiredAllowed 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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required