---
title: Create an account or zone ruleset
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/typescript)

[Rulesets](https://developers.cloudflare.com/api/typescript/resources/rulesets)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Create an account or zone ruleset

client.rulesets.create(RulesetCreateParams {account\_id, zone\_id, dry\_run, 5 more } params, RequestOptionsoptions?): [RulesetCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)>)

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/rulesets

Creates a ruleset.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Mass URL Redirects Write``Magic Firewall Write``L4 DDoS Managed Ruleset Write``Transform Rules Write``Select Configuration Write``Account WAF Write``Account Rulesets Write``Logs Write`

##### ParametersExpand Collapse

<details>

<summary>

params: RulesetCreateParams {account\_id, zone\_id, dry\_run, 5 more }

</summary>

account\_id?: string

Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

zone\_id?: string

Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20zone_id">Link to this property</a>

dry\_run?: boolean

Query param: Validates the request without persisting changes when set to <code>true</code>. Responses that normally return 200 return <code>result: null</code>; endpoints that normally return 204 continue to return 204.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dry_run">Link to this property</a>

description?: string

Body param: An informative description of the ruleset.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20description">Link to this property</a>

<details>

<summary>

kind?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)">Kind</a>

Body param: The kind of the ruleset.

</summary>

One of the following:

"managed"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%2B%20(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"custom"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%2B%20(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"root"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%2B%20(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"zone"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%2B%20(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20kind">Link to this property</a>

name?: string

Body param: The human-readable name of the ruleset.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20name">Link to this property</a>

<details>

<summary>

phase?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a>

Body param: The phase of the ruleset.

</summary>

One of the following:

"ddos\_l4"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"ddos\_l7"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"http\_config\_settings"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"http\_custom\_errors"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"http\_log\_custom\_fields"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"http\_ratelimit"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

"http\_request\_cache\_settings"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>

"http\_request\_dynamic\_redirect"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%207">Link to this property</a>

"http\_request\_firewall\_custom"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%208">Link to this property</a>

"http\_request\_firewall\_managed"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%209">Link to this property</a>

"http\_request\_late\_transform"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2010">Link to this property</a>

"http\_request\_origin"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2011">Link to this property</a>

"http\_request\_redirect"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2012">Link to this property</a>

"http\_request\_sanitize"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2013">Link to this property</a>

"http\_request\_sbfm"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2014">Link to this property</a>

"http\_request\_transform"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2015">Link to this property</a>

"http\_response\_cache\_settings"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2016">Link to this property</a>

"http\_response\_compression"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2017">Link to this property</a>

"http\_response\_firewall\_managed"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2018">Link to this property</a>

"http\_response\_headers\_transform"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2019">Link to this property</a>

"magic\_transit"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2020">Link to this property</a>

"magic\_transit\_ids\_managed"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2021">Link to this property</a>

"magic\_transit\_managed"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2022">Link to this property</a>

"magic\_transit\_ratelimit"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2023">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20phase">Link to this property</a>

<details>

<summary>

rules?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)">BlockRule</a> {last\_updated, version, id, 10 more } | RulesetsChallengeRule {last\_updated, version, id, 10 more } | <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)">CompressResponseRule</a> {last\_updated, version, id, 10 more } | 18 more&gt;

Body param: The list of rules in the ruleset.

</summary>

One of the following:

<details>

<summary>

BlockRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "block"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {response }

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

response?: Response {content, content\_type, status\_code }

The response to show when the block is applied.

</summary>

content: string

The content to return.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response%20%3E%20(property)%20content">Link to this property</a>

content\_type: string

The type of the content to return.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response%20%3E%20(property)%20content_type">Link to this property</a>

status\_code: number

The status code to return.

maximum499

minimum400

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response%20%3E%20(property)%20status_code">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

RulesetsChallengeRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

action?: "challenge"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20action">Link to this property</a>

action\_parameters?: unknown

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

CompressResponseRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "compress\_response"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {algorithms }

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

algorithms: Array&lt;Algorithm&gt;

Custom order for compression algorithms.

</summary>

<details>

<summary>

name?: "none"| "auto"| "default"| 3 more

Name of the compression algorithm to enable.

</summary>

One of the following:

"none"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name%20%3E%20(member)%200">Link to this property</a>

"auto"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name%20%3E%20(member)%201">Link to this property</a>

"default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name%20%3E%20(member)%202">Link to this property</a>

"gzip"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name%20%3E%20(member)%203">Link to this property</a>

"brotli"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name%20%3E%20(member)%204">Link to this property</a>

"zstd"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

DDoSDynamicRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "ddos\_dynamic"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

action\_parameters?: unknown

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

ExecuteRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "execute"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {id, matched\_data, overrides }

The parameters configuring the rule’s action.

</summary>

id: string

The ID of the ruleset to execute.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

matched\_data?: MatchedData {public\_key }

The configuration to use for matched data logging.

</summary>

public\_key: string

The public key to encrypt matched data logs with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20matched_data%20%3E%20(property)%20public_key">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20matched_data">Link to this property</a>

<details>

<summary>

overrides?: Overrides {action, categories, enabled, 2 more }

A set of overrides to apply to the target ruleset.

</summary>

action?: string

An action to override all rules with. This option has lower precedence than rule and category overrides.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

categories?: Array&lt;Category&gt;

A list of category-level overrides. This option has the second-highest precedence after rule-level overrides.

</summary>

category: string

The name of the category to override.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20category">Link to this property</a>

action?: string

The action to override rules in the category with.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20action">Link to this property</a>

enabled?: boolean

Whether to enable execution of rules in the category.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

sensitivity\_level?: "default"| "medium"| "low"| "eoff"

The sensitivity level to use for rules in the category. This option is only applicable for DDoS phases.

</summary>

One of the following:

"default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%200">Link to this property</a>

"medium"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%201">Link to this property</a>

"low"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%202">Link to this property</a>

"eoff"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20sensitivity_level">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories">Link to this property</a>

enabled?: boolean

Whether to enable execution of all rules. This option has lower precedence than rule and category overrides.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

rules?: Array&lt;Rule&gt;

A list of rule-level overrides. This option has the highest precedence.

</summary>

id: string

The ID of the rule to override.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

action?: string

The action to override the rule with.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20action">Link to this property</a>

enabled?: boolean

Whether to enable execution of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

score\_threshold?: number

The score threshold to use for the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20score_threshold">Link to this property</a>

<details>

<summary>

sensitivity\_level?: "default"| "medium"| "low"| "eoff"

The sensitivity level to use for the rule. This option is only applicable for DDoS phases.

</summary>

One of the following:

"default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%200">Link to this property</a>

"medium"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%201">Link to this property</a>

"low"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%202">Link to this property</a>

"eoff"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20sensitivity_level">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules">Link to this property</a>

<details>

<summary>

sensitivity\_level?: "default"| "medium"| "low"| "eoff"

A sensitivity level to set for all rules. This option has lower precedence than rule and category overrides and is only applicable for DDoS phases.

</summary>

One of the following:

"default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%200">Link to this property</a>

"medium"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%201">Link to this property</a>

"low"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%202">Link to this property</a>

"eoff"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20sensitivity_level">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

ForceConnectionCloseRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "force\_connection\_close"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

action\_parameters?: unknown

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

RulesetsJSChallengeRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20id">Link to this property</a>

action?: "js\_challenge"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20action">Link to this property</a>

action\_parameters?: unknown

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

LogRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "log"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

action\_parameters?: unknown

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

LogCustomFieldRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "log\_custom\_field"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {cookie\_fields, raw\_response\_fields, request\_fields, 2 more }

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

cookie\_fields?: Array&lt;CookieField&gt;

The cookie fields to log.

</summary>

name: string

The name of the cookie.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cookie_fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cookie_fields">Link to this property</a>

<details>

<summary>

raw\_response\_fields?: Array&lt;RawResponseField&gt;

The raw response fields to log.

</summary>

name: string

The name of the response header.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20raw_response_fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

preserve\_duplicates?: boolean

Whether to log duplicate values of the same header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20raw_response_fields%20%3E%20(items)%20%3E%20(property)%20preserve_duplicates">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20raw_response_fields">Link to this property</a>

<details>

<summary>

request\_fields?: Array&lt;RequestField&gt;

The raw request fields to log.

</summary>

name: string

The name of the header.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20request_fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20request_fields">Link to this property</a>

<details>

<summary>

response\_fields?: Array&lt;ResponseField&gt;

The transformed response fields to log.

</summary>

name: string

The name of the response header.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response_fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

preserve\_duplicates?: boolean

Whether to log duplicate values of the same header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response_fields%20%3E%20(items)%20%3E%20(property)%20preserve_duplicates">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response_fields">Link to this property</a>

<details>

<summary>

transformed\_request\_fields?: Array&lt;TransformedRequestField&gt;

The transformed request fields to log.

</summary>

name: string

The name of the header.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20transformed_request_fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20transformed_request_fields">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

ManagedChallengeRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "managed\_challenge"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

action\_parameters?: unknown

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

RedirectRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "redirect"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {from\_list, from\_value }

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

from\_list?: FromList {key, name }

A redirect based on a bulk list lookup.

</summary>

key: string

An expression that evaluates to the list lookup key.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_list%20%3E%20(property)%20key">Link to this property</a>

name: string

The name of the list to match against.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_list%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_list">Link to this property</a>

<details>

<summary>

from\_value?: FromValue {target\_url, preserve\_query\_string, status\_code }

A redirect based on the request properties.

</summary>

<details>

<summary>

target\_url: TargetURL {expression, value }

A URL to redirect the request to.

</summary>

expression?: string

An expression that evaluates to a URL to redirect the request to.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20target_url%20%3E%20(property)%20expression">Link to this property</a>

value?: string

A URL to redirect the request to.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20target_url%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20target_url">Link to this property</a>

preserve\_query\_string?: boolean

Whether to keep the query string of the original request.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20preserve_query_string">Link to this property</a>

<details>

<summary>

status\_code?: 301| 302| 303| 2 more

The status code to use for the redirect.

</summary>

One of the following:

301

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20status_code%20%3E%20(member)%200">Link to this property</a>

302

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20status_code%20%3E%20(member)%201">Link to this property</a>

303

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20status_code%20%3E%20(member)%202">Link to this property</a>

307

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20status_code%20%3E%20(member)%203">Link to this property</a>

308

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20status_code%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20status_code">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

RewriteRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "rewrite"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {headers, uri }

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

headers?: Record&lt;string, AddStaticHeader {operation, value } | AddDynamicHeader {expression, operation } | SetStaticHeader {operation, value } | 2 more&gt;

A map of headers to rewrite.

</summary>

One of the following:

<details>

<summary>

AddStaticHeader {operation, value }

A header with a static value to add.

</summary>

operation: "add"

The operation to perform on the header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: string

A static value for the header.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

AddDynamicHeader {expression, operation }

A header with a dynamic value to add.

</summary>

expression: string

An expression that evaluates to a value for the header.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20expression">Link to this property</a>

operation: "add"

The operation to perform on the header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

SetStaticHeader {operation, value }

A header with a static value to set.

</summary>

operation: "set"

The operation to perform on the header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20operation">Link to this property</a>

value: string

A static value for the header.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

SetDynamicHeader {expression, operation }

A header with a dynamic value to set.

</summary>

expression: string

An expression that evaluates to a value for the header.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20expression">Link to this property</a>

operation: "set"

The operation to perform on the header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20operation">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

RemoveHeader {operation }

A header to remove.

</summary>

operation: "remove"

The operation to perform on the header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20operation">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(variant)%204">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20headers">Link to this property</a>

<details>

<summary>

uri?: URIPath {path, origin } | URIQuery {query, origin }

A URI path rewrite.

</summary>

One of the following:

<details>

<summary>

URIPath {path, origin }

A URI path rewrite.

</summary>

<details>

<summary>

path: Path {expression, value }

A URI path rewrite.

</summary>

expression?: string

An expression that evaluates to a value to rewrite the URI path to.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20uri%20%3E%20(variant)%200%20%3E%20(property)%20path%20%3E%20(property)%20expression">Link to this property</a>

value?: string

A value to rewrite the URI path to.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20uri%20%3E%20(variant)%200%20%3E%20(property)%20path%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20uri%20%3E%20(variant)%200%20%3E%20(property)%20path">Link to this property</a>

origin?: boolean

Whether to propagate the rewritten URI to origin.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20uri%20%3E%20(variant)%200%20%3E%20(property)%20origin">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20uri%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

URIQuery {query, origin }

A URI query rewrite.

</summary>

<details>

<summary>

query: Query {expression, value }

A URI query rewrite.

</summary>

expression?: string

An expression that evaluates to a value to rewrite the URI query to.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20uri%20%3E%20(variant)%201%20%3E%20(property)%20query%20%3E%20(property)%20expression">Link to this property</a>

value?: string

A value to rewrite the URI query to.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20uri%20%3E%20(variant)%201%20%3E%20(property)%20query%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20uri%20%3E%20(variant)%201%20%3E%20(property)%20query">Link to this property</a>

origin?: boolean

Whether to propagate the rewritten URI to origin.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20uri%20%3E%20(variant)%201%20%3E%20(property)%20origin">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20uri%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20uri">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

RouteRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "route"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {host\_header, origin, sni }

The parameters configuring the rule’s action.

</summary>

host\_header?: string

A value to rewrite the HTTP host header to.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20host_header">Link to this property</a>

<details>

<summary>

origin?: Origin {host, port }

An origin to route to.

</summary>

host?: string

A resolved host to route to.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin%20%3E%20(property)%20host">Link to this property</a>

port?: number

A destination port to route to.

maximum65535

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin%20%3E%20(property)%20port">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin">Link to this property</a>

<details>

<summary>

sni?: SNI {value }

A Server Name Indication (SNI) override.

</summary>

value: string

A value to override the SNI to.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20sni%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20sni">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

ScoreRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "score"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {increment }

The parameters configuring the rule’s action.

</summary>

increment: number

A delta to change the score by, which can be either positive or negative.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20increment">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

ServeErrorRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "serve\_error"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParametersContent {content, content\_type, status\_code } | ActionParametersAsset {asset\_name, content\_type, status\_code }

The parameters configuring the rule’s action.

</summary>

One of the following:

<details>

<summary>

ActionParametersContent {content, content\_type, status\_code }

</summary>

content: string

The response content.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20content">Link to this property</a>

<details>

<summary>

content\_type?: "application/json"| "text/html"| "text/plain"| "text/xml"

The content type header to set with the error response.

</summary>

One of the following:

"application/json"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20content_type%20%3E%20(member)%200">Link to this property</a>

"text/html"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20content_type%20%3E%20(member)%201">Link to this property</a>

"text/plain"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20content_type%20%3E%20(member)%202">Link to this property</a>

"text/xml"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20content_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20content_type">Link to this property</a>

status\_code?: number

The status code to use for the error.

maximum999

minimum400

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20status_code">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

ActionParametersAsset {asset\_name, content\_type, status\_code }

</summary>

asset\_name: string

The name of a custom asset to serve as the error response.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20asset_name">Link to this property</a>

<details>

<summary>

content\_type?: "application/json"| "text/html"| "text/plain"| "text/xml"

The content type header to set with the error response.

</summary>

One of the following:

"application/json"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20content_type%20%3E%20(member)%200">Link to this property</a>

"text/html"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20content_type%20%3E%20(member)%201">Link to this property</a>

"text/plain"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20content_type%20%3E%20(member)%202">Link to this property</a>

"text/xml"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20content_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20content_type">Link to this property</a>

status\_code?: number

The status code to use for the error.

maximum999

minimum400

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20status_code">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

RulesetsSetCacheControlRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20id">Link to this property</a>

action?: "set\_cache\_control"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {immutable, max-age, must-revalidate, 10 more }

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

immutable?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable">Link to this property</a>

<details>

<summary>

"max-age"?: SetDirective {operation, value, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration that accepts a duration value in seconds.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, value, cloudflare\_only }

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: number

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age">Link to this property</a>

<details>

<summary>

"must-revalidate"?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate">Link to this property</a>

<details>

<summary>

"must-understand"?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand">Link to this property</a>

<details>

<summary>

"no-cache"?: SetDirective {operation, cloudflare\_only, qualifiers } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration that accepts optional qualifiers (header names).

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only, qualifiers }

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

qualifiers?: Array&lt;string&gt;

Optional list of header names to qualify the directive (e.g., for “private” or “no-cache” directives).

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20qualifiers">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache">Link to this property</a>

<details>

<summary>

"no-store"?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store">Link to this property</a>

<details>

<summary>

"no-transform"?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform">Link to this property</a>

<details>

<summary>

private?: SetDirective {operation, cloudflare\_only, qualifiers } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration that accepts optional qualifiers (header names).

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only, qualifiers }

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

qualifiers?: Array&lt;string&gt;

Optional list of header names to qualify the directive (e.g., for “private” or “no-cache” directives).

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20qualifiers">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private">Link to this property</a>

<details>

<summary>

"proxy-revalidate"?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate">Link to this property</a>

<details>

<summary>

public?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public">Link to this property</a>

<details>

<summary>

"s-maxage"?: SetDirective {operation, value, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration that accepts a duration value in seconds.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, value, cloudflare\_only }

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: number

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage">Link to this property</a>

<details>

<summary>

"stale-if-error"?: SetDirective {operation, value, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration that accepts a duration value in seconds.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, value, cloudflare\_only }

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: number

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error">Link to this property</a>

<details>

<summary>

"stale-while-revalidate"?: SetDirective {operation, value, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration that accepts a duration value in seconds.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, value, cloudflare\_only }

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: number

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015">Link to this property</a>

<details>

<summary>

SetCacheSettingsRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "set\_cache\_settings"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {additional\_cacheable\_ports, browser\_ttl, cache, 14 more }

The parameters configuring the rule’s action.

</summary>

additional\_cacheable\_ports?: Array&lt;number&gt;

A list of additional ports that caching should be enabled on.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20additional_cacheable_ports">Link to this property</a>

<details>

<summary>

browser\_ttl?: BrowserTTL {mode, default }

How long client browsers should cache the response. Cloudflare cache purge will not purge content cached on client browsers, so high browser TTLs may lead to stale content.

</summary>

<details>

<summary>

mode: "respect\_origin"| "bypass\_by\_default"| "override\_origin"| "bypass"

The browser TTL mode.

</summary>

One of the following:

"respect\_origin"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl%20%3E%20(property)%20mode%20%3E%20(member)%200">Link to this property</a>

"bypass\_by\_default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl%20%3E%20(property)%20mode%20%3E%20(member)%201">Link to this property</a>

"override\_origin"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl%20%3E%20(property)%20mode%20%3E%20(member)%202">Link to this property</a>

"bypass"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl%20%3E%20(property)%20mode%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl%20%3E%20(property)%20mode">Link to this property</a>

default?: number

The browser TTL (in seconds) if you choose the “override\_origin” mode.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl%20%3E%20(property)%20default">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl">Link to this property</a>

cache?: boolean

Whether the request’s response from the origin is eligible for caching. Caching itself will still depend on the cache control header and your other caching configurations.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache">Link to this property</a>

<details>

<summary>

cache\_key?: CacheKey {cache\_by\_device\_type, cache\_deception\_armor, custom\_key, ignore\_query\_strings\_order }

Which components of the request are included in or excluded from the cache key Cloudflare uses to store the response in cache.

</summary>

cache\_by\_device\_type?: boolean

Whether to separate cached content based on the visitor’s device type.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20cache_by_device_type">Link to this property</a>

cache\_deception\_armor?: boolean

Whether to protect from web cache deception attacks, while allowing static assets to be cached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20cache_deception_armor">Link to this property</a>

<details>

<summary>

custom\_key?: CustomKey {cookie, header, host, 2 more }

Which components of the request are included or excluded from the cache key.

</summary>

<details>

<summary>

cookie?: Cookie {check\_presence, include }

Which cookies to include in the cache key.

</summary>

check\_presence?: Array&lt;string&gt;

A list of cookies to check for the presence of. The presence of these cookies is included in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20cookie%20%3E%20(property)%20check_presence">Link to this property</a>

include?: Array&lt;string&gt;

A list of cookies to include in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20cookie%20%3E%20(property)%20include">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20cookie">Link to this property</a>

<details>

<summary>

header?: Header {check\_presence, contains, exclude\_origin, include }

Which headers to include in the cache key.

</summary>

check\_presence?: Array&lt;string&gt;

A list of headers to check for the presence of. The presence of these headers is included in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20header%20%3E%20(property)%20check_presence">Link to this property</a>

contains?: Record&lt;string, Array&lt;string&gt;&gt;

A mapping of header names to a list of values. If a header is present in the request and contains any of the values provided, its value is included in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20header%20%3E%20(property)%20contains">Link to this property</a>

exclude\_origin?: boolean

Whether to exclude the origin header in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20header%20%3E%20(property)%20exclude_origin">Link to this property</a>

include?: Array&lt;string&gt;

A list of headers to include in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20header%20%3E%20(property)%20include">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20header">Link to this property</a>

<details>

<summary>

host?: Host {resolved }

How to use the host in the cache key.

</summary>

resolved?: boolean

Whether to use the resolved host in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20host%20%3E%20(property)%20resolved">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20host">Link to this property</a>

<details>

<summary>

query\_string?: QueryString {exclude, include }

Which query string parameters to include in or exclude from the cache key.

</summary>

<details>

<summary>

exclude?: Exclude {all, list }

Which query string parameters to exclude from the cache key.

</summary>

all?: true

Whether to exclude all query string parameters from the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string%20%3E%20(property)%20exclude%20%3E%20(property)%20all">Link to this property</a>

list?: Array&lt;string&gt;

A list of query string parameters to exclude from the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string%20%3E%20(property)%20exclude%20%3E%20(property)%20list">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string%20%3E%20(property)%20exclude">Link to this property</a>

<details>

<summary>

include?: Include {all, list }

Which query string parameters to include in the cache key.

</summary>

all?: true

Whether to include all query string parameters in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string%20%3E%20(property)%20include%20%3E%20(property)%20all">Link to this property</a>

list?: Array&lt;string&gt;

A list of query string parameters to include in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string%20%3E%20(property)%20include%20%3E%20(property)%20list">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string%20%3E%20(property)%20include">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string">Link to this property</a>

<details>

<summary>

user?: User {device\_type, geo, lang }

How to use characteristics of the request user agent in the cache key.

</summary>

device\_type?: boolean

Whether to use the user agent’s device type in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20user%20%3E%20(property)%20device_type">Link to this property</a>

geo?: boolean

Whether to use the user agents’s country in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20user%20%3E%20(property)%20geo">Link to this property</a>

lang?: boolean

Whether to use the user agent’s language in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20user%20%3E%20(property)%20lang">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key">Link to this property</a>

ignore\_query\_strings\_order?: boolean

Whether to treat requests with the same query parameters the same, regardless of the order those query parameters are in.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20ignore_query_strings_order">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key">Link to this property</a>

<details>

<summary>

cache\_reserve?: CacheReserve {eligible, minimum\_file\_size }

Settings to determine whether the request’s response from origin is eligible for Cache Reserve (requires a Cache Reserve add-on plan).

</summary>

eligible: boolean

Whether Cache Reserve is enabled. If this is true and a request meets eligibility criteria, Cloudflare will write the resource to Cache Reserve.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_reserve%20%3E%20(property)%20eligible">Link to this property</a>

minimum\_file\_size?: number

The minimum file size eligible for storage in Cache Reserve.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_reserve%20%3E%20(property)%20minimum_file_size">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_reserve">Link to this property</a>

<details>

<summary>

edge\_ttl?: EdgeTTL {mode, default, status\_code\_ttl }

How long the Cloudflare edge network should cache the response.

</summary>

<details>

<summary>

mode: "respect\_origin"| "bypass\_by\_default"| "override\_origin"

The edge TTL mode.

</summary>

One of the following:

"respect\_origin"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20mode%20%3E%20(member)%200">Link to this property</a>

"bypass\_by\_default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20mode%20%3E%20(member)%201">Link to this property</a>

"override\_origin"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20mode%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20mode">Link to this property</a>

default?: number

The edge TTL (in seconds) if you choose the “override\_origin” mode.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20default">Link to this property</a>

<details>

<summary>

status\_code\_ttl?: Array&lt;StatusCodeTTL&gt;

A list of TTLs to apply to specific status codes or status code ranges.

</summary>

value: number

The time to cache the response for (in seconds). A value of 0 is equivalent to setting the cache control header with the value “no-cache”. A value of -1 is equivalent to setting the cache control header with the value of “no-store”.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20status_code_ttl%20%3E%20(items)%20%3E%20(property)%20value">Link to this property</a>

status\_code?: number

A single status code to apply the TTL to.

maximum999

minimum100

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20status_code_ttl%20%3E%20(items)%20%3E%20(property)%20status_code">Link to this property</a>

<details>

<summary>

status\_code\_range?: StatusCodeRange {from, to }

A range of status codes to apply the TTL to.

</summary>

from?: number

The lower bound of the range.

maximum999

minimum100

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20status_code_ttl%20%3E%20(items)%20%3E%20(property)%20status_code_range%20%3E%20(property)%20from">Link to this property</a>

to?: number

The upper bound of the range.

maximum999

minimum100

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20status_code_ttl%20%3E%20(items)%20%3E%20(property)%20status_code_range%20%3E%20(property)%20to">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20status_code_ttl%20%3E%20(items)%20%3E%20(property)%20status_code_range">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20status_code_ttl">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl">Link to this property</a>

origin\_cache\_control?: boolean

Whether Cloudflare will aim to strictly adhere to RFC 7234.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin_cache_control">Link to this property</a>

origin\_error\_page\_passthru?: boolean

Whether to generate Cloudflare error pages for issues from the origin server.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin_error_page_passthru">Link to this property</a>

<details>

<summary>

origin\_range\_requests?: OriginRangeRequests {mode }

Controls whether Cloudflare fetches a large asset from the origin as a series of range requests instead of one whole-body request.

</summary>

<details>

<summary>

mode: "on"| "off"| "default"

Whether to use range requests. <code>default</code> is the behaviour the zone gets without this rule.

</summary>

One of the following:

"on"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin_range_requests%20%3E%20(property)%20mode%20%3E%20(member)%200">Link to this property</a>

"off"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin_range_requests%20%3E%20(property)%20mode%20%3E%20(member)%201">Link to this property</a>

"default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin_range_requests%20%3E%20(property)%20mode%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin_range_requests%20%3E%20(property)%20mode">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin_range_requests">Link to this property</a>

read\_timeout?: number

A timeout value between two successive read operations to use for your origin server. Historically, the timeout value between two read options from Cloudflare to an origin server is 100 seconds. If you are attempting to reduce HTTP 524 errors because of timeouts from an origin server, try increasing this timeout value.

maximum6000

minimum100

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20read_timeout">Link to this property</a>

respect\_strong\_etags?: boolean

Whether Cloudflare should respect strong ETag (entity tag) headers. If false, Cloudflare converts strong ETag headers to weak ETag headers.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20respect_strong_etags">Link to this property</a>

<details>

<summary>

serve\_stale?: ServeStale {disable\_stale\_while\_updating }

When to serve stale content from cache.

</summary>

disable\_stale\_while\_updating?: boolean

Whether Cloudflare should disable serving stale content while getting the latest content from the origin.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20serve_stale%20%3E%20(property)%20disable_stale_while_updating">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20serve_stale">Link to this property</a>

<details>

<summary>

shared\_dictionary?: SharedDictionary {match\_pattern }

Configuration for shared dictionary compression. When set, Cloudflare injects Use-As-Dictionary headers on matching cacheable responses.

</summary>

match\_pattern: string

URL pattern for the Use-As-Dictionary match field. This pattern specifies which URLs can use this response as a dictionary.

maxLength1024

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20shared_dictionary%20%3E%20(property)%20match_pattern">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20shared_dictionary">Link to this property</a>

strip\_etags?: boolean

Whether to strip ETag headers from the origin response before caching.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20strip_etags">Link to this property</a>

strip\_last\_modified?: boolean

Whether to strip Last-Modified headers from the origin response before caching.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20strip_last_modified">Link to this property</a>

strip\_set\_cookie?: boolean

Whether to strip Set-Cookie headers from the origin response before caching.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20strip_set_cookie">Link to this property</a>

<details>

<summary>

vary?: Vary {default, headers }

Controls how cached responses vary based on request headers. <code>default</code> is required by the API and applies to any Vary response header that does not have a per-header override.

</summary>

<details>

<summary>

default?: Default {action }

Controls how response Vary headers without a per-header override contribute to the cache key.

</summary>

<details>

<summary>

action: "bypass"| "passthrough"| "normalize"

How the header value is treated when building the cache key.

</summary>

One of the following:

"bypass"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20default%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

"passthrough"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20default%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

"normalize"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20default%20%3E%20(property)%20action%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20default%20%3E%20(property)%20action">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20default">Link to this property</a>

<details>

<summary>

headers?: Record&lt;string, Headers&gt;

A mapping of lowercase request header names to their vary configuration.

</summary>

<details>

<summary>

action: "bypass"| "passthrough"| "normalize"

How the header value is treated when building the cache key.

</summary>

One of the following:

"bypass"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

"passthrough"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

"normalize"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(property)%20action">Link to this property</a>

languages?: Array&lt;string&gt;

The set of languages to normalize against. Only valid for the <code>accept-language</code> header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(property)%20languages">Link to this property</a>

media\_types?: Array&lt;string&gt;

The set of media types to normalize against. Only valid for the <code>accept</code> header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(property)%20media_types">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

RulesetsSetCacheTagsRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20id">Link to this property</a>

action?: "set\_cache\_tags"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: AddCacheTagsValues {operation, values } | AddCacheTagsExpression {expression, operation } | RemoveCacheTagsValues {operation, values } | 3 more

The parameters configuring the rule’s action.

</summary>

One of the following:

<details>

<summary>

AddCacheTagsValues {operation, values }

Add cache tags using a list of values.

</summary>

<details>

<summary>

operation: "add"| "remove"| "set"

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

values: Array&lt;string&gt;

A list of cache tag values.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

AddCacheTagsExpression {expression, operation }

Add cache tags using an expression.

</summary>

expression: string

An expression that evaluates to an array of cache tag values.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

operation: "add"| "remove"| "set"

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

RemoveCacheTagsValues {operation, values }

Remove cache tags using a list of values.

</summary>

<details>

<summary>

operation: "add"| "remove"| "set"

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20operation">Link to this property</a>

values: Array&lt;string&gt;

A list of cache tag values.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

RemoveCacheTagsExpression {expression, operation }

Remove cache tags using an expression.

</summary>

expression: string

An expression that evaluates to an array of cache tag values.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

operation: "add"| "remove"| "set"

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20operation">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

SetCacheTagsValues {operation, values }

Set cache tags using a list of values.

</summary>

<details>

<summary>

operation: "add"| "remove"| "set"

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20operation">Link to this property</a>

values: Array&lt;string&gt;

A list of cache tag values.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

SetCacheTagsExpression {expression, operation }

Set cache tags using an expression.

</summary>

expression: string

An expression that evaluates to an array of cache tag values.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

operation: "add"| "remove"| "set"

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20operation">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017">Link to this property</a>

<details>

<summary>

SetConfigRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "set\_config"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {automatic\_https\_rewrites, autominify, bic, 21 more }

The parameters configuring the rule’s action.

</summary>

automatic\_https\_rewrites?: boolean

Whether to enable Automatic HTTPS Rewrites.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20automatic_https_rewrites">Link to this property</a>

<details>

<summary>

autominify?: Autominify {css, html, js }

Which file extensions to minify automatically.

</summary>

css?: boolean

Whether to minify CSS files.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20autominify%20%3E%20(property)%20css">Link to this property</a>

html?: boolean

Whether to minify HTML files.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20autominify%20%3E%20(property)%20html">Link to this property</a>

js?: boolean

Whether to minify JavaScript files.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20autominify%20%3E%20(property)%20js">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20autominify">Link to this property</a>

bic?: boolean

Whether to enable Browser Integrity Check (BIC).

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20bic">Link to this property</a>

content\_converter?: boolean

Whether to enable content conversion (e.g., HTML to Markdown).

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20content_converter">Link to this property</a>

Deprecateddisable\_apps?: true

Cloudflare Apps are deprected.

Whether to disable Cloudflare Apps.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20disable_apps">Link to this property</a>

disable\_pay\_per\_crawl?: true

Whether to disable Pay Per Crawl.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20disable_pay_per_crawl">Link to this property</a>

disable\_rum?: true

Whether to disable Real User Monitoring (RUM).

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20disable_rum">Link to this property</a>

disable\_zaraz?: true

Whether to disable Zaraz.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20disable_zaraz">Link to this property</a>

email\_obfuscation?: boolean

Whether to enable Email Obfuscation.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20email_obfuscation">Link to this property</a>

fonts?: boolean

Whether to enable Cloudflare Fonts.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20fonts">Link to this property</a>

hotlink\_protection?: boolean

Whether to enable Hotlink Protection.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20hotlink_protection">Link to this property</a>

Deprecatedmirage?: boolean

Mirage is deprecated. More information at <a href="https://developers.cloudflare.com/speed/optimization/images/mirage/">https://developers.cloudflare.com/speed/optimization/images/mirage/</a>.

Whether to enable Mirage.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20mirage">Link to this property</a>

opportunistic\_encryption?: boolean

Whether to enable Opportunistic Encryption.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20opportunistic_encryption">Link to this property</a>

<details>

<summary>

polish?: "off"| "lossless"| "lossy"| "webp"

The Polish level to configure.

</summary>

One of the following:

"off"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20polish%20%3E%20(member)%200">Link to this property</a>

"lossless"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20polish%20%3E%20(member)%201">Link to this property</a>

"lossy"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20polish%20%3E%20(member)%202">Link to this property</a>

"webp"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20polish%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20polish">Link to this property</a>

redirects\_for\_ai\_training?: boolean

Whether to redirect verified AI training crawlers to canonical URLs found in the HTML response.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20redirects_for_ai_training">Link to this property</a>

<details>

<summary>

request\_body\_buffering?: "none"| "standard"| "full"

The request body buffering mode.

</summary>

One of the following:

"none"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20request_body_buffering%20%3E%20(member)%200">Link to this property</a>

"standard"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20request_body_buffering%20%3E%20(member)%201">Link to this property</a>

"full"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20request_body_buffering%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20request_body_buffering">Link to this property</a>

<details>

<summary>

response\_body\_buffering?: "none"| "standard"

The response body buffering mode.

</summary>

One of the following:

"none"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response_body_buffering%20%3E%20(member)%200">Link to this property</a>

"standard"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response_body_buffering%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response_body_buffering">Link to this property</a>

rocket\_loader?: boolean

Whether to enable Rocket Loader.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20rocket_loader">Link to this property</a>

<details>

<summary>

security\_level?: "off"| "essentially\_off"| "low"| 3 more

The Security Level to configure.

</summary>

One of the following:

"off"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20security_level%20%3E%20(member)%200">Link to this property</a>

"essentially\_off"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20security_level%20%3E%20(member)%201">Link to this property</a>

"low"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20security_level%20%3E%20(member)%202">Link to this property</a>

"medium"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20security_level%20%3E%20(member)%203">Link to this property</a>

"high"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20security_level%20%3E%20(member)%204">Link to this property</a>

"under\_attack"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20security_level%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20security_level">Link to this property</a>

server\_side\_excludes?: boolean

Whether to enable Server-Side Excludes.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20server_side_excludes">Link to this property</a>

<details>

<summary>

ssl?: "off"| "flexible"| "full"| 2 more

The SSL level to configure.

</summary>

One of the following:

"off"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20ssl%20%3E%20(member)%200">Link to this property</a>

"flexible"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20ssl%20%3E%20(member)%201">Link to this property</a>

"full"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20ssl%20%3E%20(member)%202">Link to this property</a>

"strict"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20ssl%20%3E%20(member)%203">Link to this property</a>

"origin\_pull"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20ssl%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20ssl">Link to this property</a>

Deprecatedsxg?: boolean

Signed Exchanges (SXG) is deprecated.

Whether to enable Signed Exchanges (SXG).

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20sxg">Link to this property</a>

webmcp\_enabled?: boolean

Whether to serve the WebMCP bridge script, which exposes the page’s tools to browser AI agents.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20webmcp_enabled">Link to this property</a>

webmcp\_packs?: Array&lt;string&gt;

Bundled WebMCP tool packs to activate for matching requests. An empty array disables all packs. Omitting this parameter leaves the pack selection unchanged. Does not enable the WebMCP bridge itself. Non-empty selections require the WebMCP Configuration Rules entitlement.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20webmcp_packs">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

SkipRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

action?: "skip"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {phase, phases, products, 3 more }

The parameters configuring the rule’s action.

</summary>

phase?: "current"

A phase to skip the execution of. This option is only compatible with the products option.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20phase">Link to this property</a>

<details>

<summary>

phases?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a>&gt;

A list of phases to skip the execution of. This option is incompatible with the rulesets option.

</summary>

One of the following:

"ddos\_l4"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"ddos\_l7"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"http\_config\_settings"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"http\_custom\_errors"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"http\_log\_custom\_fields"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"http\_ratelimit"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

"http\_request\_cache\_settings"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>

"http\_request\_dynamic\_redirect"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%207">Link to this property</a>

"http\_request\_firewall\_custom"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%208">Link to this property</a>

"http\_request\_firewall\_managed"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%209">Link to this property</a>

"http\_request\_late\_transform"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2010">Link to this property</a>

"http\_request\_origin"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2011">Link to this property</a>

"http\_request\_redirect"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2012">Link to this property</a>

"http\_request\_sanitize"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2013">Link to this property</a>

"http\_request\_sbfm"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2014">Link to this property</a>

"http\_request\_transform"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2015">Link to this property</a>

"http\_response\_cache\_settings"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2016">Link to this property</a>

"http\_response\_compression"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2017">Link to this property</a>

"http\_response\_firewall\_managed"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2018">Link to this property</a>

"http\_response\_headers\_transform"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2019">Link to this property</a>

"magic\_transit"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2020">Link to this property</a>

"magic\_transit\_ids\_managed"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2021">Link to this property</a>

"magic\_transit\_managed"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2022">Link to this property</a>

"magic\_transit\_ratelimit"

<a href="#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2023">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20phases">Link to this property</a>

<details>

<summary>

products?: Array&lt;"bic"| "hot"| "rateLimit"| 4 more&gt;

A list of legacy security products to skip the execution of.

</summary>

One of the following:

"bic"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20products%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"hot"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20products%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"rateLimit"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20products%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"securityLevel"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20products%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"uaBlock"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20products%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

"waf"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20products%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

"zoneLockdown"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20products%20%3E%20(items)%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20products">Link to this property</a>

rules?: Record&lt;string, Array&lt;string&gt;&gt;

A mapping of ruleset IDs to a list of rule IDs in that ruleset to skip the execution of. This option is incompatible with the ruleset option.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20rules">Link to this property</a>

ruleset?: "current"

A ruleset to skip the execution of. This option is incompatible with the rulesets option.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20ruleset">Link to this property</a>

rulesets?: Array&lt;string&gt;

A list of ruleset IDs to skip the execution of. This option is incompatible with the ruleset and phases options.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20rulesets">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

RulesetsTransformResponseHTMLRule {last\_updated, version, id, 10 more }

</summary>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20last_updated">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20version">Link to this property</a>

id?: string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20id">Link to this property</a>

action?: "transform\_response\_html"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {link\_maze }

The parameters configuring the rule’s action.

</summary>

link\_maze: unknown

Enables the link maze transformation on the response.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20action_parameters%20%3E%20(property)%20link_maze">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20description">Link to this property</a>

enabled?: boolean

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

expression?: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit">Link to this property</a>

ref?: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rules">Link to this property</a>

</details>

[Link to this property](<#(resource)%20rulesets%20%3E%20(method)%20create%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

RulesetCreateResponse = Ruleset {id, kind, last\_updated, 5 more } | unknown

A result.

</summary>

One of the following:

<details>

<summary>

Ruleset {id, kind, last\_updated, 5 more }

A ruleset object.

</summary>

id: string

The unique ID of the ruleset.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

kind: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)">Kind</a>

The kind of the ruleset.

</summary>

One of the following:

"managed"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20kind%20%2B%20(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"custom"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20kind%20%2B%20(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"root"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20kind%20%2B%20(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"zone"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20kind%20%2B%20(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20kind">Link to this property</a>

last\_updated: string

The timestamp of when the ruleset was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20last_updated">Link to this property</a>

name: string

The human-readable name of the ruleset.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

phase: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a>

The phase of the ruleset.

</summary>

One of the following:

"ddos\_l4"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"ddos\_l7"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"http\_config\_settings"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"http\_custom\_errors"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"http\_log\_custom\_fields"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"http\_ratelimit"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

"http\_request\_cache\_settings"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>

"http\_request\_dynamic\_redirect"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%207">Link to this property</a>

"http\_request\_firewall\_custom"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%208">Link to this property</a>

"http\_request\_firewall\_managed"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%209">Link to this property</a>

"http\_request\_late\_transform"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2010">Link to this property</a>

"http\_request\_origin"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2011">Link to this property</a>

"http\_request\_redirect"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2012">Link to this property</a>

"http\_request\_sanitize"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2013">Link to this property</a>

"http\_request\_sbfm"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2014">Link to this property</a>

"http\_request\_transform"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2015">Link to this property</a>

"http\_response\_cache\_settings"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2016">Link to this property</a>

"http\_response\_compression"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2017">Link to this property</a>

"http\_response\_firewall\_managed"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2018">Link to this property</a>

"http\_response\_headers\_transform"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2019">Link to this property</a>

"magic\_transit"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2020">Link to this property</a>

"magic\_transit\_ids\_managed"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2021">Link to this property</a>

"magic\_transit\_managed"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2022">Link to this property</a>

"magic\_transit\_ratelimit"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2023">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase">Link to this property</a>

<details>

<summary>

rules: Array&lt;BlockRule {id, action, enabled, 2 more } | ChallengeRule {id, action, enabled, 10 more } | ResponseCompressionRule {id, action, enabled, 2 more } | 18 more&gt;

The list of rules in the ruleset.

</summary>

One of the following:

<details>

<summary>

BlockRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)">BlockRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

ChallengeRule {id, action, enabled, 10 more }

</summary>

id: string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

action: "challenge"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20expression">Link to this property</a>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20last_updated">Link to this property</a>

ref: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ref">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20version">Link to this property</a>

action\_parameters?: unknown

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20description">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

ResponseCompressionRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)">CompressResponseRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

DDoSDynamicRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)">DDoSDynamicRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

ExecuteRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)">ExecuteRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

ForceConnectionCloseRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)">ForceConnectionCloseRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

JavaScriptChallengeRule {id, action, enabled, 10 more }

</summary>

id: string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20id">Link to this property</a>

action: "js\_challenge"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

Whether the rule should be executed.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20expression">Link to this property</a>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20last_updated">Link to this property</a>

ref: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ref">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20version">Link to this property</a>

action\_parameters?: unknown

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20description">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

LogRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)">LogRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%207%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%207%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%207%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%207%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%207%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%207">Link to this property</a>

<details>

<summary>

LogCustomFieldRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)">LogCustomFieldRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%208">Link to this property</a>

<details>

<summary>

ManagedChallengeRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)">ManagedChallengeRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%209">Link to this property</a>

<details>

<summary>

RedirectRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)">RedirectRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2010">Link to this property</a>

<details>

<summary>

RewriteRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)">RewriteRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2011">Link to this property</a>

<details>

<summary>

RouteRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)">RouteRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2012">Link to this property</a>

<details>

<summary>

ScoreRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)">ScoreRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2013">Link to this property</a>

<details>

<summary>

ServeErrorRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)">ServeErrorRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2014%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2014%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2014%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2014%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2014%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2014">Link to this property</a>

<details>

<summary>

SetCacheControlRule {id, action, enabled, 10 more }

</summary>

id: string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20id">Link to this property</a>

action: "set\_cache\_control"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20expression">Link to this property</a>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20last_updated">Link to this property</a>

ref: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ref">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20version">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {immutable, max-age, must-revalidate, 10 more }

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

immutable?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable">Link to this property</a>

<details>

<summary>

"max-age"?: SetDirective {operation, value, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration that accepts a duration value in seconds.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, value, cloudflare\_only }

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: number

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age">Link to this property</a>

<details>

<summary>

"must-revalidate"?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate">Link to this property</a>

<details>

<summary>

"must-understand"?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand">Link to this property</a>

<details>

<summary>

"no-cache"?: SetDirective {operation, cloudflare\_only, qualifiers } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration that accepts optional qualifiers (header names).

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only, qualifiers }

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

qualifiers?: Array&lt;string&gt;

Optional list of header names to qualify the directive (e.g., for “private” or “no-cache” directives).

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20qualifiers">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache">Link to this property</a>

<details>

<summary>

"no-store"?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store">Link to this property</a>

<details>

<summary>

"no-transform"?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform">Link to this property</a>

<details>

<summary>

private?: SetDirective {operation, cloudflare\_only, qualifiers } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration that accepts optional qualifiers (header names).

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only, qualifiers }

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

qualifiers?: Array&lt;string&gt;

Optional list of header names to qualify the directive (e.g., for “private” or “no-cache” directives).

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20qualifiers">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private">Link to this property</a>

<details>

<summary>

"proxy-revalidate"?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate">Link to this property</a>

<details>

<summary>

public?: SetDirective {operation, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, cloudflare\_only }

Set the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public">Link to this property</a>

<details>

<summary>

"s-maxage"?: SetDirective {operation, value, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration that accepts a duration value in seconds.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, value, cloudflare\_only }

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: number

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage">Link to this property</a>

<details>

<summary>

"stale-if-error"?: SetDirective {operation, value, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration that accepts a duration value in seconds.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, value, cloudflare\_only }

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: number

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error">Link to this property</a>

<details>

<summary>

"stale-while-revalidate"?: SetDirective {operation, value, cloudflare\_only } | RemoveDirective {operation, cloudflare\_only }

A cache-control directive configuration that accepts a duration value in seconds.

</summary>

One of the following:

<details>

<summary>

SetDirective {operation, value, cloudflare\_only }

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: number

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

RemoveDirective {operation, cloudflare\_only }

Remove the directive.

</summary>

<details>

<summary>

operation: "set"| "remove"

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only?: boolean

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20description">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015">Link to this property</a>

<details>

<summary>

SetCacheSettingsRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)">SetCacheSettingsRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2016">Link to this property</a>

<details>

<summary>

SetCacheTagsRule {id, action, enabled, 10 more }

</summary>

id: string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20id">Link to this property</a>

action: "set\_cache\_tags"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20expression">Link to this property</a>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20last_updated">Link to this property</a>

ref: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ref">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20version">Link to this property</a>

<details>

<summary>

action\_parameters?: AddCacheTagsValues {operation, values } | AddCacheTagsExpression {expression, operation } | RemoveCacheTagsValues {operation, values } | 3 more

The parameters configuring the rule’s action.

</summary>

One of the following:

<details>

<summary>

AddCacheTagsValues {operation, values }

Add cache tags using a list of values.

</summary>

<details>

<summary>

operation: "add"| "remove"| "set"

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

values: Array&lt;string&gt;

A list of cache tag values.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

AddCacheTagsExpression {expression, operation }

Add cache tags using an expression.

</summary>

expression: string

An expression that evaluates to an array of cache tag values.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

operation: "add"| "remove"| "set"

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

RemoveCacheTagsValues {operation, values }

Remove cache tags using a list of values.

</summary>

<details>

<summary>

operation: "add"| "remove"| "set"

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20operation">Link to this property</a>

values: Array&lt;string&gt;

A list of cache tag values.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

RemoveCacheTagsExpression {expression, operation }

Remove cache tags using an expression.

</summary>

expression: string

An expression that evaluates to an array of cache tag values.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

operation: "add"| "remove"| "set"

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20operation">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

SetCacheTagsValues {operation, values }

Set cache tags using a list of values.

</summary>

<details>

<summary>

operation: "add"| "remove"| "set"

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20operation">Link to this property</a>

values: Array&lt;string&gt;

A list of cache tag values.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

SetCacheTagsExpression {expression, operation }

Set cache tags using an expression.

</summary>

expression: string

An expression that evaluates to an array of cache tag values.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

operation: "add"| "remove"| "set"

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20operation">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20description">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017">Link to this property</a>

<details>

<summary>

SetConfigurationRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)">SetConfigRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2018">Link to this property</a>

<details>

<summary>

SkipRule extends <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)">SkipRule</a> {last\_updated, version, id, 10 more } {id, action, enabled, 2 more }

</summary>

id: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: string

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2019">Link to this property</a>

<details>

<summary>

TransformResponseHTMLRule {id, action, enabled, 10 more }

</summary>

id: string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20id">Link to this property</a>

action: "transform\_response\_html"

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20action">Link to this property</a>

enabled: boolean

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20expression">Link to this property</a>

last\_updated: string

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20last_updated">Link to this property</a>

ref: string

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ref">Link to this property</a>

version: string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20version">Link to this property</a>

<details>

<summary>

action\_parameters?: ActionParameters {link\_maze }

The parameters configuring the rule’s action.

</summary>

link\_maze: unknown

Enables the link maze transformation on the response.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20action_parameters%20%3E%20(property)%20link_maze">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20action_parameters">Link to this property</a>

categories?: Array&lt;string&gt;

The categories of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20categories">Link to this property</a>

description?: string

An informative description of the rule.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20description">Link to this property</a>

<details>

<summary>

exposed\_credential\_check?: ExposedCredentialCheck {password\_expression, username\_expression }

Configuration for exposed credential checking.

</summary>

password\_expression: string

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: string

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

<details>

<summary>

logging?: <a href="https://developers.cloudflare.com/api/typescript/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a> {enabled }

An object configuring the rule’s logging behavior.

</summary>

enabled: boolean

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit?: Ratelimit {characteristics, period, counting\_expression, 5 more }

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Array&lt;string&gt;

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: number

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression?: string

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout?: number

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period?: number

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin?: boolean

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period?: number

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name?: string

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules">Link to this property</a>

version: string

The version of the ruleset.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20version">Link to this property</a>

description?: string

An informative description of the ruleset.

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20description">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

unknown

<a href="#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20rulesets%20%3E%20(model)%20ruleset_create_response%20%3E%20(schema)>)

### Create an account or zone ruleset

TypeScript

HTTPTypeScriptPythonGoTerraform

```
import Cloudflare from 'cloudflare';

const client = new Cloudflare({
  apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});

const ruleset = await client.rulesets.create({ account_id: 'account_id' });

console.log(ruleset);
```

200 example

```
{
  "errors": [
    {
      "message": "something bad happened",
      "code": 10000,
      "source": {
        "pointer": "/rules/0/action"
      }
    }
  ],
  "messages": [
    {
      "message": "something bad happened",
      "code": 10000,
      "source": {
        "pointer": "/rules/0/action"
      }
    }
  ],
  "result": {
    "id": "2f2feab2026849078ba485f918791bdc",
    "kind": "root",
    "last_updated": "2000-01-01T00:00:00Z",
    "name": "My ruleset",
    "phase": "http_request_firewall_custom",
    "rules": [
      {
        "last_updated": "2000-01-01T00:00:00Z",
        "version": "1",
        "id": "id",
        "action": "action",
        "action_parameters": {
          "response": {
            "content": "{\n  \"success\": false,\n  \"error\": \"you have been blocked\"\n}",
            "content_type": "application/json",
            "status_code": 400
          }
        },
        "categories": [
          "directory-traversal"
        ],
        "description": "Block the request.",
        "enabled": true,
        "exposed_credential_check": {
          "password_expression": "url_decode(http.request.body.form[\\\"password\\\"][0])",
          "username_expression": "url_decode(http.request.body.form[\\\"username\\\"][0])"
        },
        "expression": "expression",
        "logging": {
          "enabled": true
        },
        "ratelimit": {
          "characteristics": [
            "cf.colo.id"
          ],
          "period": 60,
          "counting_expression": "http.request.body.raw eq \"abcd\"",
          "mitigation_timeout": 600,
          "requests_per_period": 1000,
          "requests_to_origin": true,
          "score_per_period": 400,
          "score_response_header_name": "my-score"
        },
        "ref": "ref"
      }
    ],
    "version": "1",
    "description": "A description for my ruleset."
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "message": "something bad happened",
      "code": 10000,
      "source": {
        "pointer": "/rules/0/action"
      }
    }
  ],
  "messages": [
    {
      "message": "something bad happened",
      "code": 10000,
      "source": {
        "pointer": "/rules/0/action"
      }
    }
  ],
  "result": {
    "id": "2f2feab2026849078ba485f918791bdc",
    "kind": "root",
    "last_updated": "2000-01-01T00:00:00Z",
    "name": "My ruleset",
    "phase": "http_request_firewall_custom",
    "rules": [
      {
        "last_updated": "2000-01-01T00:00:00Z",
        "version": "1",
        "id": "id",
        "action": "action",
        "action_parameters": {
          "response": {
            "content": "{\n  \"success\": false,\n  \"error\": \"you have been blocked\"\n}",
            "content_type": "application/json",
            "status_code": 400
          }
        },
        "categories": [
          "directory-traversal"
        ],
        "description": "Block the request.",
        "enabled": true,
        "exposed_credential_check": {
          "password_expression": "url_decode(http.request.body.form[\\\"password\\\"][0])",
          "username_expression": "url_decode(http.request.body.form[\\\"username\\\"][0])"
        },
        "expression": "expression",
        "logging": {
          "enabled": true
        },
        "ratelimit": {
          "characteristics": [
            "cf.colo.id"
          ],
          "period": 60,
          "counting_expression": "http.request.body.raw eq \"abcd\"",
          "mitigation_timeout": 600,
          "requests_per_period": 1000,
          "requests_to_origin": true,
          "score_per_period": 400,
          "score_response_header_name": "my-score"
        },
        "ref": "ref"
      }
    ],
    "version": "1",
    "description": "A description for my ruleset."
  },
  "success": true
}
```