PUT
/campaigns/{id}Replace a campaign
Replaces campaign details for the campaign identified by id. Supply the campaign fields you want to set, such as name, subject, or lists; the schema does not require any particular body fields. A successful response contains the updated campaign object.
idintegerrequired
The integer identifier of the campaign to update.
Campaign fields to apply to the campaign; every listed field is optional.
namestringoptional
The campaign name.
subjectstringoptional
The subject line for the campaign.
listsarray<number>optional
Numeric identifiers of the subscriber lists associated with the campaign.
from_emailstringoptional
The sender email address for the campaign.
content_typestringoptional
The campaign content type.
messengerstringoptional
The messaging channel used by the campaign.
typestringoptional
The campaign type.
tagsarray<string>optional
Tags associated with the campaign.
send_laterbooleanoptional
Whether to schedule the campaign to be sent later.
send_atobjectoptional
Scheduling details for the campaign, including optional `headers` and numeric `template_id` fields.
200Returns the updated campaign object in `data`, including campaign details such as its name, subject, lists, sender, type, tags, and scheduling information.
dataobjectoptional
Error handling
The id path parameter must be an integer identifying the campaign to update. The body fields are optional in the schema; use their declared types, including arrays for lists and tags and a boolean for send_later.