---
title: RUM
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# RUM

#### RUMSite Info

##### [List Web Analytics sites](https://developers.cloudflare.com/api/typescript/resources/rum/subresources/site_info/methods/list)

client.rum.siteInfo.list(SiteInfoListParams {account\_id, order\_by, page, per\_page } params, RequestOptionsoptions?): V4PagePaginationArray< [Site](<https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)>) {auto\_install, created, rules, 4 more } >

GET/accounts/{account\_id}/rum/site\_info/list

##### [Get a Web Analytics site](https://developers.cloudflare.com/api/typescript/resources/rum/subresources/site_info/methods/get)

client.rum.siteInfo.get(stringsiteID, SiteInfoGetParams {account\_id } params, RequestOptionsoptions?): [Site](<https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)>) {auto\_install, created, rules, 4 more }

GET/accounts/{account\_id}/rum/site\_info/{site\_id}

##### [Create a Web Analytics site](https://developers.cloudflare.com/api/typescript/resources/rum/subresources/site_info/methods/create)

client.rum.siteInfo.create(SiteInfoCreateParams {account\_id, auto\_install, host, zone\_tag } params, RequestOptionsoptions?): [Site](<https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)>) {auto\_install, created, rules, 4 more }

POST/accounts/{account\_id}/rum/site\_info

##### [Update a Web Analytics site](https://developers.cloudflare.com/api/typescript/resources/rum/subresources/site_info/methods/update)

client.rum.siteInfo.update(stringsiteID, SiteInfoUpdateParams {account\_id, auto\_install, enabled, 3 more } params, RequestOptionsoptions?): [Site](<https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)>) {auto\_install, created, rules, 4 more }

PUT/accounts/{account\_id}/rum/site\_info/{site\_id}

##### [Delete a Web Analytics site](https://developers.cloudflare.com/api/typescript/resources/rum/subresources/site_info/methods/delete)

client.rum.siteInfo.delete(stringsiteID, SiteInfoDeleteParams {account\_id } params, RequestOptionsoptions?): [SiteInfoDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.site_info%20%3E%20(model)%20site_info_delete_response%20%3E%20(schema)>) {site\_tag }

DELETE/accounts/{account\_id}/rum/site\_info/{site\_id}

##### ModelsExpand Collapse

<details>

<summary>

Site {auto\_install, created, rules, 4 more }

</summary>

auto\_install?: boolean

If enabled, the JavaScript snippet is automatically injected for orange-clouded sites.

<a href="#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20auto_install">Link to this property</a>

created?: string

formatdate-time

<a href="#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

<details>

<summary>

rules?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20rum_rule%20%3E%20(schema)">RUMRule</a> {id, created, host, 4 more } &gt;

A list of rules.

</summary>

id?: string

The Web Analytics rule identifier.

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

created?: string

formatdate-time

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

host?: string

The hostname the rule will be applied to.

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

inclusive?: boolean

Whether the rule includes or excludes traffic from being measured.

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

is\_paused?: boolean

Whether the rule is paused or not.

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

paths?: Array&lt;string&gt;

The paths the rule will be applied to.

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

priority?: number

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

</details>

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

<details>

<summary>

ruleset?: Ruleset {id, enabled, zone\_name, zone\_tag }

</summary>

id?: string

The Web Analytics ruleset identifier.

<a href="#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20ruleset%20%3E%20(property)%20id">Link to this property</a>

enabled?: boolean

Whether the ruleset is enabled.

<a href="#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20ruleset%20%3E%20(property)%20enabled">Link to this property</a>

zone\_name?: string

<a href="#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20ruleset%20%3E%20(property)%20zone_name">Link to this property</a>

zone\_tag?: string

The zone identifier.

<a href="#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20ruleset%20%3E%20(property)%20zone_tag">Link to this property</a>

</details>

<a href="#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20ruleset">Link to this property</a>

site\_tag?: string

The Web Analytics site identifier.

<a href="#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20site_tag">Link to this property</a>

site\_token?: string

The Web Analytics site token.

<a href="#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20site_token">Link to this property</a>

snippet?: string

Encoded JavaScript snippet.

<a href="#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)%20%3E%20(property)%20snippet">Link to this property</a>

</details>

[Link to this property](<#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)>)

<details>

<summary>

SiteInfoDeleteResponse {site\_tag }

</summary>

site\_tag?: string

The Web Analytics site identifier.

<a href="#(resource)%20rum.site_info%20%3E%20(model)%20site_info_delete_response%20%3E%20(schema)%20%3E%20(property)%20site_tag">Link to this property</a>

</details>

[Link to this property](<#(resource)%20rum.site_info%20%3E%20(model)%20site_info_delete_response%20%3E%20(schema)>)

#### RUMRules

##### [List rules in Web Analytics ruleset](https://developers.cloudflare.com/api/typescript/resources/rum/subresources/rules/methods/list)

client.rum.rules.list(stringrulesetID, RuleListParams {account\_id } params, RequestOptionsoptions?): [RuleListResponse](<https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)>) {rules, ruleset }

GET/accounts/{account\_id}/rum/v2/{ruleset\_id}/rules

##### [Create a Web Analytics rule](https://developers.cloudflare.com/api/typescript/resources/rum/subresources/rules/methods/create)

client.rum.rules.create(stringrulesetID, RuleCreateParams {account\_id, host, inclusive, 2 more } params, RequestOptionsoptions?): [RUMRule](<https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20rum_rule%20%3E%20(schema)>) {id, created, host, 4 more }

POST/accounts/{account\_id}/rum/v2/{ruleset\_id}/rule

##### [Update a Web Analytics rule](https://developers.cloudflare.com/api/typescript/resources/rum/subresources/rules/methods/update)

client.rum.rules.update(stringruleID, RuleUpdateParams {account\_id, ruleset\_id, host, 3 more } params, RequestOptionsoptions?): [RUMRule](<https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20rum_rule%20%3E%20(schema)>) {id, created, host, 4 more }

PUT/accounts/{account\_id}/rum/v2/{ruleset\_id}/rule/{rule\_id}

##### [Delete a Web Analytics rule](https://developers.cloudflare.com/api/typescript/resources/rum/subresources/rules/methods/delete)

client.rum.rules.delete(stringruleID, RuleDeleteParams {account\_id, ruleset\_id } params, RequestOptionsoptions?): [RuleDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20rule_delete_response%20%3E%20(schema)>) {id }

DELETE/accounts/{account\_id}/rum/v2/{ruleset\_id}/rule/{rule\_id}

##### [Update Web Analytics rules](https://developers.cloudflare.com/api/typescript/resources/rum/subresources/rules/methods/bulk_create)

client.rum.rules.bulkCreate(stringrulesetID, RuleBulkCreateParams {account\_id, delete\_rules, rules } params, RequestOptionsoptions?): [RuleBulkCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20rule_bulk_create_response%20%3E%20(schema)>) {rules, ruleset }

POST/accounts/{account\_id}/rum/v2/{ruleset\_id}/rules

##### ModelsExpand Collapse

<details>

<summary>

RUMRule {id, created, host, 4 more }

</summary>

id?: string

The Web Analytics rule identifier.

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

created?: string

formatdate-time

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

host?: string

The hostname the rule will be applied to.

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

inclusive?: boolean

Whether the rule includes or excludes traffic from being measured.

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

is\_paused?: boolean

Whether the rule is paused or not.

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

paths?: Array&lt;string&gt;

The paths the rule will be applied to.

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

priority?: number

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

</details>

[Link to this property](<#(resource)%20rum.rules%20%3E%20(model)%20rum_rule%20%3E%20(schema)>)

<details>

<summary>

RuleListResponse {rules, ruleset }

</summary>

<details>

<summary>

rules?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20rum_rule%20%3E%20(schema)">RUMRule</a> {id, created, host, 4 more } &gt;

A list of rules.

</summary>

id?: string

The Web Analytics rule identifier.

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

created?: string

formatdate-time

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

host?: string

The hostname the rule will be applied to.

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

inclusive?: boolean

Whether the rule includes or excludes traffic from being measured.

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

is\_paused?: boolean

Whether the rule is paused or not.

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

paths?: Array&lt;string&gt;

The paths the rule will be applied to.

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

priority?: number

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

</details>

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

<details>

<summary>

ruleset?: Ruleset {id, enabled, zone\_name, zone\_tag }

</summary>

id?: string

The Web Analytics ruleset identifier.

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

enabled?: boolean

Whether the ruleset is enabled.

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

zone\_name?: string

<a href="#(resource)%20rum.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20ruleset%20%3E%20(property)%20zone_name">Link to this property</a>

zone\_tag?: string

The zone identifier.

<a href="#(resource)%20rum.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20ruleset%20%3E%20(property)%20zone_tag">Link to this property</a>

</details>

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

</details>

[Link to this property](<#(resource)%20rum.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)>)

<details>

<summary>

RuleDeleteResponse {id }

</summary>

id?: string

The Web Analytics rule identifier.

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

</details>

[Link to this property](<#(resource)%20rum.rules%20%3E%20(model)%20rule_delete_response%20%3E%20(schema)>)

<details>

<summary>

RuleBulkCreateResponse {rules, ruleset }

</summary>

<details>

<summary>

rules?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20rum_rule%20%3E%20(schema)">RUMRule</a> {id, created, host, 4 more } &gt;

A list of rules.

</summary>

id?: string

The Web Analytics rule identifier.

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

created?: string

formatdate-time

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

host?: string

The hostname the rule will be applied to.

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

inclusive?: boolean

Whether the rule includes or excludes traffic from being measured.

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

is\_paused?: boolean

Whether the rule is paused or not.

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

paths?: Array&lt;string&gt;

The paths the rule will be applied to.

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

priority?: number

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

</details>

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

<details>

<summary>

ruleset?: Ruleset {id, enabled, zone\_name, zone\_tag }

</summary>

id?: string

The Web Analytics ruleset identifier.

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

enabled?: boolean

Whether the ruleset is enabled.

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

zone\_name?: string

<a href="#(resource)%20rum.rules%20%3E%20(model)%20rule_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20ruleset%20%3E%20(property)%20zone_name">Link to this property</a>

zone\_tag?: string

The zone identifier.

<a href="#(resource)%20rum.rules%20%3E%20(model)%20rule_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20ruleset%20%3E%20(property)%20zone_tag">Link to this property</a>

</details>

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

</details>

[Link to this property](<#(resource)%20rum.rules%20%3E%20(model)%20rule_bulk_create_response%20%3E%20(schema)>)