Create Campaign
Creates a campaign — the Create Campaign action on the admin Marketing → Communications → Campaigns screen. A campaign pairs an email template with a recipient customer group for a channel.
TIP
New here? Read the Campaigns overview for what a campaign does and how its fields behave.
Operation
| Operation | Type | Purpose |
|---|---|---|
createAdminMarketingCampaign | Mutation | Create a campaign |
Details
- Requires an admin Bearer token and the
marketing.communications.campaigns.createpermission. - The mutation returns the campaign's scalar fields. The
channel,customerGroup, andmarketingTemplateobjects do not resolve on the mutation payload — re-query the detail to read them.
Input fields
| Field | Type | Required | Notes |
|---|---|---|---|
name | String | Yes | Campaign name |
subject | String | Yes | Email subject line |
marketingTemplateId | Int | Yes | Email template to send |
channelId | Int | Yes | Channel the campaign sends in |
customerGroupId | Int | Yes | Recipient customer group |
marketingEventId | Int | No | Optional linked event, or null |
status | Int | No | 0 inactive / 1 active |

