Update Campaign
Updates an existing campaign — the Edit action on the admin Marketing → Communications → Campaigns screen.
TIP
New here? Read the Campaigns overview for what a campaign does and how its fields behave.
Operation
| Operation | Type | Purpose |
|---|---|---|
updateAdminMarketingCampaign | Mutation | Update a campaign |
Details
- Requires an admin Bearer token and the
marketing.communications.campaigns.editpermission. - Pass the campaign's IRI as
id. The update is a partial merge — send only the fields you want to change; omitted fields keep their existing values. - 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 |
|---|---|---|---|
id | ID | Yes | The campaign's IRI |
name | String | No | Campaign name |
subject | String | No | Email subject line |
marketingTemplateId | Int | No | Email template to send |
channelId | Int | No | Channel the campaign sends in |
customerGroupId | Int | No | Recipient customer group |
marketingEventId | Int | No | Linked event, or null |
status | Int | No | 0 inactive / 1 active |

