# Update broadcast

> Updates a draft. Accepts the same fields as **Create broadcast**.

Source: https://mailvina.com/docs/api-reference/broadcasts/update-broadcast · Base URL: https://api.mailvina.com · Guide: https://mailvina.com/docs/broadcasts

`PATCH /broadcasts/:id`

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The broadcast ID. |

**Request**

```bash
curl -X PATCH 'https://api.mailvina.com/broadcasts/:id' \
  -H 'Authorization: Bearer mv_xxxxxxxxx' \
  -H 'Content-Type: application/json' \
  -d '{
  "subject": "What’s new this month"
}'
```

```js
const res = await fetch('https://api.mailvina.com/broadcasts/:id', {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.MAILVINA_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "subject": "What’s new this month"
  }),
});
const data = await res.json();
```

```python
import os, requests

res = requests.patch(
    "https://api.mailvina.com/broadcasts/:id",
    headers={"Authorization": f"Bearer {os.environ['MAILVINA_API_KEY']}"},
    json={
        "subject": "What’s new this month"
    },
)
print(res.json())
```

**Response**

```json
{
  "id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b"
}
```
