# PATCH /email-campaigns/:id

**Resource:** [Email Campaigns](./email-campaigns.md)  
**Scopes:** `email-campaigns:write`  
**Write operation:** yes

Update a draft or scheduled campaign. Only draft and scheduled campaigns can be modified.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `id` | path | uuid | yes | Campaign UUID |
| `name` | body | string | no | Campaign name |
| `subject` | body | string | no | Email subject |
| `intro_text` | body | string | no | Intro text |
| `body_html` | body | string | no | Email body HTML |
| `cta_text` | body | string | no | CTA button label |
| `cta_url` | body | string | no | CTA button URL |
| `show_reply_button` | body | boolean | no | Show reply button |
| `email_config_id` | body | uuid | no | Sender config UUID |
| `segment_filter` | body | object | no | Audience filter |
| `scheduled_for` | body | string | no | Schedule timestamp (ISO 8601) |

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`