---
title: Update account Email Sending suppression
---

[Skip to content](#_top)

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

[Email Sending](https://developers.cloudflare.com/api/python/resources/email_sending)

[Suppressions](https://developers.cloudflare.com/api/python/resources/email_sending/subresources/suppressions)

Copy Markdown

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

---

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

# Update account Email Sending suppression

email\_sending.suppressions.edit(strsuppression\_id, SuppressionEditParams\*\*kwargs) -> [SuppressionEditResponse](<https://developers.cloudflare.com/api/python/resources/email_sending#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/email/sending/suppressions/{suppression\_id}

Updates expiry or advisory note fields without changing legacy internal zone memberships. Scope cannot be changed.

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

##### ParametersExpand Collapse

account\_id: str

Cloudflare account ID.

[Link to this property](<#(resource)%20email_sending.suppressions%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20account_id%20%3E%20(schema)>)

suppression\_id: str

The suppression’s identifier.

formatuuid

[Link to this property](<#(resource)%20email_sending.suppressions%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20suppression_id%20%3E%20(schema)>)

expires\_at: Optional\[Union\[str, datetime, null]]

New expiry. Send `null` to make the suppression permanent; omit to leave it unchanged.

formatdate-time

[Link to this property](<#(resource)%20email_sending.suppressions%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20expires_at%20%3E%20(schema)>)

note: Optional\[str]

Replacement advisory note. Send an empty string to clear it; omit to leave it unchanged.

maxLength1000

[Link to this property](<#(resource)%20email_sending.suppressions%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20note%20%3E%20(schema)>)

scope: Optional\[[object](<https://developers.cloudflare.com/api/python/resources/email_sending/subresources/suppressions/methods/edit#(resource)%20email_sending.suppressions%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20scope%20%3E%20(schema)>)]

Not editable. Scope is fixed when the suppression is created; any value returns 400 with code `scope_immutable`. Delete and recreate the suppression to change it.

[Link to this property](<#(resource)%20email_sending.suppressions%20%3E%20(method)%20edit%20%3E%20(params)%20default%20%3E%20(param)%20scope%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

class SuppressionEditResponse: …

</summary>

id: str

Unique identifier for this suppression.

formatuuid

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_at: datetime

When the suppression was created.

formatdate-time

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

email: str

The suppressed email address.

formatemail

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20email">Link to this property</a>

expires\_at: Optional\[datetime]

When the suppression expires. Null for a permanent suppression.

formatdate-time

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20expires_at">Link to this property</a>

read\_only: bool

Whether clients may mutate this suppression. This is determined by the server and must not be inferred from <code>reason</code>.

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20read_only">Link to this property</a>

reason: str

Why the address is suppressed: <code>manual</code>, <code>complaint</code>, <code>hard_bounce</code>, <code>soft_bounce</code>, or <code>policy</code>.

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20reason">Link to this property</a>

note: Optional\[str]

Advisory note for this suppression, if any.

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20note">Link to this property</a>

<details>

<summary>

scope: Optional\[Scope]

Where the suppression applies: <code>account</code> for every sending domain of the account, or <code>sending_domain</code> for one envelope MAIL FROM domain.

</summary>

One of the following:

<details>

<summary>

class ScopeType: …

</summary>

type: Literal\["account"]

Blocks the recipient for every sending domain of the account.

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class ScopeUnionMember1: …

</summary>

type: Literal\["sending\_domain"]

Blocks the recipient only for mail whose envelope MAIL FROM uses <code>value</code>.

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

value: str

The sending domain: the domain part of the envelope MAIL FROM, lowercase, without a trailing dot.

maxLength1024

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(variant)%201%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_sending.suppressions%20%3E%20(model)%20suppression_edit_response%20%3E%20(schema)>)

### Update account Email Sending suppression

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
)
response = client.email_sending.suppressions.edit(
    suppression_id="396a5436-d4b0-42a6-b3fc-48e8fa522321",
    account_id="12345678",
)
print(response.id)
```

200 example

```
{
  "errors": [
    {}
  ],
  "messages": [
    {}
  ],
  "result": {
    "id": "396a5436-d4b0-42a6-b3fc-48e8fa522321",
    "created_at": "2026-01-02T02:20:00Z",
    "email": "user@example.com",
    "expires_at": "2027-01-01T00:00:00Z",
    "read_only": false,
    "reason": "hard_bounce",
    "note": "Imported from CRM",
    "scope": {
      "type": "sending_domain",
      "value": "mail.example.com"
    }
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {}
  ],
  "messages": [
    {}
  ],
  "result": {
    "id": "396a5436-d4b0-42a6-b3fc-48e8fa522321",
    "created_at": "2026-01-02T02:20:00Z",
    "email": "user@example.com",
    "expires_at": "2027-01-01T00:00:00Z",
    "read_only": false,
    "reason": "hard_bounce",
    "note": "Imported from CRM",
    "scope": {
      "type": "sending_domain",
      "value": "mail.example.com"
    }
  },
  "success": true
}
```