Update account Email Sending suppression
email_sending.suppressions.edit(strsuppression_id, SuppressionEditParams**kwargs) -> SuppressionEditResponse
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
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Parameters
expires_at: Optional[Union[str, datetime, null]]
New expiry. Send null to make the suppression permanent; omit to leave it unchanged.
formatdate-time
note: Optional[str]
Replacement advisory note. Send an empty string to clear it; omit to leave it unchanged.
maxLength1000
Update account Email Sending suppression
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){
"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
{
"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
}