---
title: Update a Notification policy
---

[Skip to content](#_top)

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

[Alerting](https://developers.cloudflare.com/api/python/resources/alerting)

[Policies](https://developers.cloudflare.com/api/python/resources/alerting/subresources/policies)

Copy Markdown

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

---

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

# Update a Notification policy

alerting.policies.update(strpolicy\_id, PolicyUpdateParams\*\*kwargs) -> [PolicyUpdateResponse](<https://developers.cloudflare.com/api/python/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)>)

PUT/accounts/{account\_id}/alerting/v3/policies/{policy\_id}

Update a Notification policy.

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

`Notifications Write``Account Settings Write`

##### ParametersExpand Collapse

account\_id: str

The account id

maxLength32

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20account_id%20%3E%20(schema)>)

policy\_id: str

The unique identifier of a notification policy

maxLength32

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20policy_id%20%3E%20(schema)>)

alert\_interval: Optional\[str]

Optional specification of how often to re-alert from the same incident, not support on all alert types.

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_interval%20%3E%20(schema)>)

<details>

<summary>

alert\_type: Optional\[Literal\["abuse\_report\_alert", "access\_custom\_certificate\_expiration\_type", "advanced\_ddos\_attack\_l4\_alert", 66 more]]

Refers to which event will trigger a Notification dispatch. You can use the endpoint to get available alert types which then will give you a list of possible values.

</summary>

One of the following:

"abuse\_report\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"access\_custom\_certificate\_expiration\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"advanced\_ddos\_attack\_l4\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"advanced\_ddos\_attack\_l7\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"advanced\_http\_alert\_error"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"bgp\_hijack\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

"billing\_usage\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>

"block\_notification\_block\_removed"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%207">Link to this property</a>

"block\_notification\_new\_block"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%208">Link to this property</a>

"block\_notification\_review\_rejected"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%209">Link to this property</a>

"bot\_traffic\_basic\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2010">Link to this property</a>

"brand\_protection\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2011">Link to this property</a>

"brand\_protection\_digest"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2012">Link to this property</a>

"clickhouse\_alert\_fw\_anomaly"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2013">Link to this property</a>

"clickhouse\_alert\_fw\_ent\_anomaly"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2014">Link to this property</a>

"cloudforce\_one\_request\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2015">Link to this property</a>

"cni\_maintenance\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2016">Link to this property</a>

"custom\_analytics"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2017">Link to this property</a>

"custom\_bot\_detection\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2018">Link to this property</a>

"custom\_ssl\_certificate\_event\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2019">Link to this property</a>

"dedicated\_ssl\_certificate\_event\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2020">Link to this property</a>

"device\_connectivity\_anomaly\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2021">Link to this property</a>

"dos\_attack\_l4"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2022">Link to this property</a>

"dos\_attack\_l7"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2023">Link to this property</a>

"expiring\_service\_token\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2024">Link to this property</a>

"failing\_logpush\_job\_disabled\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2025">Link to this property</a>

"fbm\_auto\_advertisement"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2026">Link to this property</a>

"fbm\_dosd\_attack"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2027">Link to this property</a>

"fbm\_volumetric\_attack"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2028">Link to this property</a>

"health\_check\_status\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2029">Link to this property</a>

"hostname\_aop\_custom\_certificate\_expiration\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2030">Link to this property</a>

"http\_alert\_edge\_error"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2031">Link to this property</a>

"http\_alert\_origin\_error"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2032">Link to this property</a>

"image\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2033">Link to this property</a>

"image\_resizing\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2034">Link to this property</a>

"incident\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2035">Link to this property</a>

"load\_balancing\_health\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2036">Link to this property</a>

"load\_balancing\_pool\_enablement\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2037">Link to this property</a>

"logo\_match\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2038">Link to this property</a>

"magic\_tunnel\_health\_check\_event"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2039">Link to this property</a>

"magic\_wan\_tunnel\_health"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2040">Link to this property</a>

"maintenance\_event\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2041">Link to this property</a>

"mtls\_certificate\_store\_certificate\_expiration\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2042">Link to this property</a>

"pages\_event\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2043">Link to this property</a>

"radar\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2044">Link to this property</a>

"real\_origin\_monitoring"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2045">Link to this property</a>

"scriptmonitor\_alert\_new\_code\_change\_detections"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2046">Link to this property</a>

"scriptmonitor\_alert\_new\_hosts"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2047">Link to this property</a>

"scriptmonitor\_alert\_new\_malicious\_hosts"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2048">Link to this property</a>

"scriptmonitor\_alert\_new\_malicious\_scripts"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2049">Link to this property</a>

"scriptmonitor\_alert\_new\_malicious\_url"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2050">Link to this property</a>

"scriptmonitor\_alert\_new\_max\_length\_resource\_url"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2051">Link to this property</a>

"scriptmonitor\_alert\_new\_resources"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2052">Link to this property</a>

"secondary\_dns\_all\_primaries\_failing"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2053">Link to this property</a>

"secondary\_dns\_primaries\_failing"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2054">Link to this property</a>

"secondary\_dns\_warning"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2055">Link to this property</a>

"secondary\_dns\_zone\_successfully\_updated"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2056">Link to this property</a>

"secondary\_dns\_zone\_validation\_warning"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2057">Link to this property</a>

"security\_insights\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2058">Link to this property</a>

"sentinel\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2059">Link to this property</a>

"stream\_live\_notifications"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2060">Link to this property</a>

"synthetic\_test\_latency\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2061">Link to this property</a>

"synthetic\_test\_low\_availability\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2062">Link to this property</a>

"traffic\_anomalies\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2063">Link to this property</a>

"tunnel\_health\_event"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2064">Link to this property</a>

"tunnel\_update\_event"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2065">Link to this property</a>

"universal\_ssl\_event\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2066">Link to this property</a>

"web\_analytics\_metrics\_update"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2067">Link to this property</a>

"zone\_aop\_custom\_certificate\_expiration\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)%20%3E%20(member)%2068">Link to this property</a>

</details>

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20alert_type%20%3E%20(schema)>)

description: Optional\[str]

Optional description for the Notification policy.

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20description%20%3E%20(schema)>)

enabled: Optional\[[bool](<https://developers.cloudflare.com/api/python/resources/alerting/subresources/policies/methods/update#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20enabled%20%3E%20(schema)>)]

Whether or not the Notification policy is enabled.

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20enabled%20%3E%20(schema)>)

<details>

<summary>

filters: Optional\[<a href="https://developers.cloudflare.com/api/python/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)">PolicyFilterParam</a>]

Optional filters that allow you to be alerted only on a subset of events for that alert type based on some criteria. This is only available for select alert types. See alert type documentation for more details.

</summary>

actions: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20actions">Link to this property</a>

affected\_asns: Optional\[List\[str]]

Used for configuring radar\_notification

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20affected_asns">Link to this property</a>

affected\_components: Optional\[List\[str]]

Used for configuring incident\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20affected_components">Link to this property</a>

affected\_locations: Optional\[List\[str]]

Used for configuring radar\_notification

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20affected_locations">Link to this property</a>

airport\_code: Optional\[List\[str]]

Used for configuring maintenance\_event\_notification

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20airport_code">Link to this property</a>

alert\_trigger\_preferences: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20alert_trigger_preferences">Link to this property</a>

alert\_trigger\_preferences\_value: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20alert_trigger_preferences_value">Link to this property</a>

enabled: Optional\[List\[str]]

Used for configuring load\_balancing\_pool\_enablement\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

environment: Optional\[List\[str]]

Used for configuring pages\_event\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20environment">Link to this property</a>

event: Optional\[List\[str]]

Used for configuring pages\_event\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20event">Link to this property</a>

event\_source: Optional\[List\[str]]

Used for configuring load\_balancing\_health\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20event_source">Link to this property</a>

event\_type: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20event_type">Link to this property</a>

group\_by: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20group_by">Link to this property</a>

health\_check\_id: Optional\[List\[str]]

Used for configuring health\_check\_status\_notification

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20health_check_id">Link to this property</a>

<details>

<summary>

incident\_impact: Optional\[List\[Literal\["INCIDENT\_IMPACT\_NONE", "INCIDENT\_IMPACT\_MINOR", "INCIDENT\_IMPACT\_MAJOR", "INCIDENT\_IMPACT\_CRITICAL"]]]

Used for configuring incident\_alert

</summary>

One of the following:

"INCIDENT\_IMPACT\_NONE"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20incident_impact%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"INCIDENT\_IMPACT\_MINOR"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20incident_impact%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"INCIDENT\_IMPACT\_MAJOR"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20incident_impact%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"INCIDENT\_IMPACT\_CRITICAL"

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20incident_impact%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20incident_impact">Link to this property</a>

input\_id: Optional\[List\[str]]

Used for configuring stream\_live\_notifications

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20input_id">Link to this property</a>

insight\_class: Optional\[List\[str]]

Used for configuring security\_insights\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20insight_class">Link to this property</a>

limit: Optional\[List\[str]]

Used for configuring billing\_usage\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20limit">Link to this property</a>

logo\_tag: Optional\[List\[str]]

Used for configuring logo\_match\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20logo_tag">Link to this property</a>

megabits\_per\_second: Optional\[List\[str]]

Used for configuring advanced\_ddos\_attack\_l4\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20megabits_per_second">Link to this property</a>

new\_health: Optional\[List\[str]]

Used for configuring load\_balancing\_health\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20new_health">Link to this property</a>

new\_status: Optional\[List\[str]]

Used for configuring tunnel\_health\_event

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20new_status">Link to this property</a>

packets\_per\_second: Optional\[List\[str]]

Used for configuring advanced\_ddos\_attack\_l4\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20packets_per_second">Link to this property</a>

pool\_id: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20pool_id">Link to this property</a>

pop\_names: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20pop_names">Link to this property</a>

product: Optional\[List\[str]]

Used for configuring billing\_usage\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20product">Link to this property</a>

project\_id: Optional\[List\[str]]

Used for configuring pages\_event\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20project_id">Link to this property</a>

protocol: Optional\[List\[str]]

Used for configuring advanced\_ddos\_attack\_l4\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20protocol">Link to this property</a>

query\_tag: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20query_tag">Link to this property</a>

requests\_per\_second: Optional\[List\[str]]

Used for configuring advanced\_ddos\_attack\_l7\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20requests_per_second">Link to this property</a>

selectors: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20selectors">Link to this property</a>

services: Optional\[List\[str]]

Used for configuring clickhouse\_alert\_fw\_ent\_anomaly

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20services">Link to this property</a>

slo: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20slo">Link to this property</a>

status: Optional\[List\[str]]

Used for configuring health\_check\_status\_notification

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

target\_hostname: Optional\[List\[str]]

Used for configuring advanced\_ddos\_attack\_l7\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20target_hostname">Link to this property</a>

target\_ip: Optional\[List\[str]]

Used for configuring advanced\_ddos\_attack\_l4\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20target_ip">Link to this property</a>

target\_zone\_name: Optional\[List\[str]]

Used for configuring advanced\_ddos\_attack\_l7\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20target_zone_name">Link to this property</a>

token\_id: Optional\[List\[str]]

Access service token IDs to include for expiring\_service\_token\_alert. Omit this property to include all current and future service tokens.

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20token_id">Link to this property</a>

traffic\_exclusions: Optional\[List\[Literal\["security\_events"]]]

Used for configuring traffic\_anomalies\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20traffic_exclusions">Link to this property</a>

tunnel\_id: Optional\[List\[str]]

Used for configuring tunnel\_health\_event

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20tunnel_id">Link to this property</a>

tunnel\_name: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20tunnel_name">Link to this property</a>

type: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

where: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20where">Link to this property</a>

zones: Optional\[List\[str]]

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20zones">Link to this property</a>

</details>

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filters%20%3E%20(schema)>)

<details>

<summary>

mechanisms: Optional\[<a href="https://developers.cloudflare.com/api/python/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)">MechanismParam</a>]

List of IDs that will be used when dispatching a notification. IDs for email type will be the email address.

</summary>

<details>

<summary>

email: Optional\[List\[Email]]

</summary>

id: Optional\[str]

The email address

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20mechanisms%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)%20%3E%20(property)%20email%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20mechanisms%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)%20%3E%20(property)%20email">Link to this property</a>

<details>

<summary>

pagerduty: Optional\[List\[Pagerduty]]

</summary>

id: Optional\[str]

UUID

maxLength32

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20mechanisms%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)%20%3E%20(property)%20pagerduty%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20mechanisms%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)%20%3E%20(property)%20pagerduty">Link to this property</a>

<details>

<summary>

webhooks: Optional\[List\[Webhook]]

</summary>

id: Optional\[str]

UUID

maxLength32

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20mechanisms%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)%20%3E%20(property)%20webhooks%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20mechanisms%20%3E%20(schema)%20%2B%20(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)%20%3E%20(property)%20webhooks">Link to this property</a>

</details>

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20mechanisms%20%3E%20(schema)>)

name: Optional\[str]

Name of the policy.

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20name%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

class PolicyUpdateResponse: …

</summary>

id: Optional\[str]

UUID

maxLength32

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)>)

### Update a Notification policy

Python

HTTPTypeScriptPythonGoTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
policy = client.alerting.policies.update(
    policy_id="0da2b59ef118439d8097bdfb215203c9",
    account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
print(policy.id)
```

200 example

```
{
  "errors": [
    {
      "message": "message",
      "code": 1000
    }
  ],
  "messages": [
    {
      "message": "message",
      "code": 1000
    }
  ],
  "success": true,
  "result": {
    "id": "f174e90afafe4643bbbc4a0ed4fc8415"
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "message": "message",
      "code": 1000
    }
  ],
  "messages": [
    {
      "message": "message",
      "code": 1000
    }
  ],
  "success": true,
  "result": {
    "id": "f174e90afafe4643bbbc4a0ed4fc8415"
  }
}
```