---
title: Update destination address
---

[Skip to content](#%5Ftop) 

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

[Email Routing](https://developers.cloudflare.com/api/python/resources/email%5Frouting)

[Addresses](https://developers.cloudflare.com/api/python/resources/email%5Frouting/subresources/addresses)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Update destination address

email\_routing.addresses.edit(strdestination\_address\_identifier, AddressEditParams\*\*kwargs)  \-> [Address](https://developers.cloudflare.com/api/python/resources/email%5Frouting#%28resource%29%20email%5Frouting.addresses%20%3E%20%28model%29%20address%20%3E%20%28schema%29)

PATCH/accounts/{account\_id}/email/routing/addresses/{destination\_address\_identifier}

Updates the status of a specific destination address.

##### Security

API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**`X-Auth-Email: user@example.com`

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**`X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194`

##### Accepted Permissions (at least one required)

`Email Routing Addresses Write`

##### ParametersExpand Collapse 

account\_id: str

Identifier.

maxLength32

destination\_address\_identifier: str

Destination address identifier.

maxLength32

status: Literal\["unverified", "verified"\]

Destination address status. Non-admin callers may only set verified addresses back to unverified; setting to verified requires admin privileges.

One of the following:

"unverified"

"verified"

##### ReturnsExpand Collapse 

class Address: …

id: Optional\[str\]

Destination address identifier.

maxLength32

created: Optional\[datetime\]

The date and time the destination address has been created.

formatdate-time

email: Optional\[str\]

The contact email address of the user.

maxLength90

modified: Optional\[datetime\]

The date and time the destination address was last modified.

formatdate-time

Deprecatedtag: Optional\[str\]

Destination address tag. (Deprecated, replaced by destination address identifier)

maxLength32

verified: Optional\[datetime\]

The date and time the destination address has been verified. Null means not verified yet.

formatdate-time

### Update destination address

Python

HTTPHTTP

TypeScriptTypeScript

PythonPython

GoGo

TerraformTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_email=os.environ.get("CLOUDFLARE_EMAIL"),  # This is the default and can be omitted
    api_key=os.environ.get("CLOUDFLARE_API_KEY"),  # This is the default and can be omitted
)
address = client.email_routing.addresses.edit(
    destination_address_identifier="ea95132c15732412d22c1476fa83f27a",
    account_id="023e105f4ecef8ad9ca31a8372d0c353",
    status="verified",
)
print(address.id)
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "id": "ea95132c15732412d22c1476fa83f27a",
    "created": "2014-01-02T02:20:00Z",
    "email": "user@example.com",
    "modified": "2014-01-02T02:20:00Z",
    "tag": "ea95132c15732412d22c1476fa83f27a",
    "verified": "2014-01-02T02:20:00Z"
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "id": "ea95132c15732412d22c1476fa83f27a",
    "created": "2014-01-02T02:20:00Z",
    "email": "user@example.com",
    "modified": "2014-01-02T02:20:00Z",
    "tag": "ea95132c15732412d22c1476fa83f27a",
    "verified": "2014-01-02T02:20:00Z"
  }
}
```