---
title: RUM
---

[Skip to content](#_top)

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

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/go/resources/rum/subresources/site_info/methods/list)

client.RUM.SiteInfo.List(ctx, params) (\*V4PagePaginationArray\[[Site](<https://developers.cloudflare.com/api/go/resources/rum#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)>)], error)

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

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

client.RUM.SiteInfo.Get(ctx, siteID, query) (\*[Site](<https://developers.cloudflare.com/api/go/resources/rum#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)>), error)

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

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

client.RUM.SiteInfo.New(ctx, params) (\*[Site](<https://developers.cloudflare.com/api/go/resources/rum#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)>), error)

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

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

client.RUM.SiteInfo.Update(ctx, siteID, params) (\*[Site](<https://developers.cloudflare.com/api/go/resources/rum#(resource)%20rum.site_info%20%3E%20(model)%20site%20%3E%20(schema)>), error)

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

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

client.RUM.SiteInfo.Delete(ctx, siteID, body) (\*[SiteInfoDeleteResponse](<https://developers.cloudflare.com/api/go/resources/rum#(resource)%20rum.site_info%20%3E%20(model)%20SiteInfoDeleteResponse%20%3E%20(schema)>), error)

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

##### ModelsExpand Collapse

<details>

<summary>

type Site struct{…}

</summary>

AutoInstall boolOptional

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 TimeOptional

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 \[]<a href="https://developers.cloudflare.com/api/go/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20rum_rule%20%3E%20(schema)">RUMRule</a>Optional

A list of rules.

</summary>

ID stringOptional

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 TimeOptional

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 stringOptional

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 boolOptional

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>

IsPaused boolOptional

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 \[]stringOptional

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 float64Optional

<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 SiteRulesetOptional

</summary>

ID stringOptional

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 boolOptional

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>

ZoneName stringOptional

<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>

ZoneTag stringOptional

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>

SiteTag stringOptional

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>

SiteToken stringOptional

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 stringOptional

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)>)

#### RUMRules

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

client.RUM.Rules.List(ctx, rulesetID, query) (\*[RuleListResponse](<https://developers.cloudflare.com/api/go/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20RuleListResponse%20%3E%20(schema)>), error)

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

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

client.RUM.Rules.New(ctx, rulesetID, params) (\*[RUMRule](<https://developers.cloudflare.com/api/go/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20rum_rule%20%3E%20(schema)>), error)

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

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

client.RUM.Rules.Update(ctx, rulesetID, ruleID, params) (\*[RUMRule](<https://developers.cloudflare.com/api/go/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20rum_rule%20%3E%20(schema)>), error)

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

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

client.RUM.Rules.Delete(ctx, rulesetID, ruleID, body) (\*[RuleDeleteResponse](<https://developers.cloudflare.com/api/go/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20RuleDeleteResponse%20%3E%20(schema)>), error)

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

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

client.RUM.Rules.BulkNew(ctx, rulesetID, params) (\*[RuleBulkNewResponse](<https://developers.cloudflare.com/api/go/resources/rum#(resource)%20rum.rules%20%3E%20(model)%20RuleBulkNewResponse%20%3E%20(schema)>), error)

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

##### ModelsExpand Collapse

<details>

<summary>

type RUMRule struct{…}

</summary>

ID stringOptional

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 TimeOptional

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 stringOptional

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 boolOptional

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>

IsPaused boolOptional

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 \[]stringOptional

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 float64Optional

<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)>)