## Update Mailing List

`print_mail.mailing_lists.update(strid, MailingListUpdateParams**kwargs)  -> MailingListUpdate`

**post** `/print-mail/v1/mailing_lists/{id}`

Update an existing mailing list.

### Parameters

- `id: str`

- `description: Optional[str]`

  An optional string describing this resource. Will be visible in the API and the dashboard.

- `metadata: Optional[Dict[str, object]]`

  See the section on Metadata.

### Returns

- `class MailingListUpdate: …`

  Parameters for updating an existing mailing list.

  - `description: Optional[str]`

    An optional string describing this resource. Will be visible in the API and the dashboard.

  - `metadata: Optional[Dict[str, object]]`

    See the section on Metadata.

### Example

```python
import os
from postgrid import PostGrid

client = PostGrid(
    print_mail_api_key=os.environ.get("POSTGRID_PRINT_MAIL_API_KEY"),  # This is the default and can be omitted
)
mailing_list_update = client.print_mail.mailing_lists.update(
    id="id",
    description="Updated Mailing List Description",
)
print(mailing_list_update.description)
```

#### Response

```json
{
  "description": "Test Mailing List",
  "metadata": {
    "campaign": "launch"
  }
}
```
