PATCH/api/v1/projects/{project_id}/campaigns/{campaign_id}
Needs scope: writeMCP tool: update_campaign
operationId update_campaign
Update a campaign
Changes the fields the body names; the rest keep their values. Only a
draft or scheduled campaign takes a change. Needs scope write.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
project_idrequired |
path | string · uuid | The project’s id |
campaign_idrequired |
path | string · uuid | The campaign’s id |
Request body
application/json · required
- UpdateCampaignRequest object
-
from_emailstring · email | null -
from_namestring | null -
list_idsarray of string1 to 16 distinct ids of live lists of the project.
1–16 items
-
namestringexample
Spring sale, final -
reply_tostring · email | null -
subject_overridestring | null -
template_idstring · uuidA message template of the project.
-
throttle_per_hourinteger · int64 | null1–4294967295
-
tracking_overrideTrackingOverrideInput | nullWhat a campaign tracks in place of the project’s
settings.tracking.2 fields
- TrackingOverrideInput object · all fields required
-
clicksbooleanClick redirects.
-
opensbooleanThe open pixel.
-
transport_overridestring | null
Responses
200
The campaign after the update
- Campaign object · all fields required
-
completed_atstring · date-time | null -
created_atstring · date-time -
from_emailstring · email | nullnull: the project’ssettings.from_email. -
from_namestring | nullnull: the project’ssettings.from_name. -
idstring · uuidexample
01900000-0000-7000-8000-000000000001 -
last_errorstring | nullWhy the launch failed;
nullunlessfailed. -
launched_atstring · date-time | null -
list_idsarray of stringIn the order given.
-
namestringexample
Spring sale -
partial_versionsmap of string → integer · int32The versions of the partials fixed at launch, by name;
{}before. -
project_idstring · uuid -
reply_tostring · email | nullnull: the project’ssettings.reply_to. -
scheduled_atstring · date-time | nullWhen a scheduled campaign launches;
nullunless scheduled. -
shard_countinteger · int32 | nullFixed at launch;
nullbefore.≥ 0
-
statusstringdraft,scheduled,launching,sending,paused,completed,cancelledorfailed.example
draft -
subject_overridestring | nullnull: the template’s subject. -
template_idstring · uuid -
template_versioninteger · int32 | nullThe template’s version fixed at launch;
nullbefore.≥ 0
-
throttle_per_hourinteger · int32 | nullnull: the project’sdefault_throttle_per_hour, or no limit.≥ 0
-
total_recipientsinteger · int64 | nullRecipients of the launch’s snapshot;
nullbefore.≥ 0
-
tracking_overrideTrackingOverride | nullnull: the project’ssettings.tracking.2 fields
- TrackingOverride object · all fields required
-
clicksboolean -
opensboolean
-
transport_overridestring | nullnull: the project’s transport, then the node’s default. -
updated_atstring · date-timeThe latest change: creation, fields, status.
404
No such project or campaign in it, or another project’s (not_found)
409
The campaign is past scheduled, or its project is deleted (conflict)
429
The key is over its rate limit, api.rate_limit_per_minute requests a minute on this node (rate_limited)
| Header | Type | Description |
|---|---|---|
Retry-After | integer | Seconds until the key’s next request passes; rounded up. |
504
Postwind’s storage did not answer within its time limit (storage_timeout). A change the request makes may still take effect: check before repeating it. A repeat with the same Idempotency-Key never runs it twice: it is 409 idempotency_key_in_progress until the key’s 24 h end