PUT (Update) An Email Campaign Activity
Use this method to update an email campaign activity by including the complete email campaign activity with your changes in the request body. The request body requires the from_name, from_email, reply_to_email, and subject properties.
You can only update email campaign activities that have the primary_email role and that are in DRAFT or Done status. When you use a PUT method to update a resource, the V3 API overwrites any properties that are missing in the request body. However, the V3 API does not overwrite subresources that you omit in the request body or missing properties in subresources. This method considers physical_address_in_footer, document_properties, html_content, and permalink_url subresources of the email campaign activity.
Path parameters
The unique ID for the email campaign activity you are updating.
Request body
Example request
{
"campaign_activity_id": "4c08372c-957a-48b5-bc45-72c7f00796cd",
"campaign_id": "8987dc1a-48ef-433a-b836-7ca4f9aa3481",
"role": "primary_email",
"contact_list_ids": [
"da10f460-3072-11e9-b282-fa163e6b01c1"
],
"segment_ids": [
1
],
"current_status": "DRAFT",
"format_type": 5,
"from_email": "jdodge@constantcontact.com",
"from_name": "Jake Dodge",
"reply_to_email": "jdodge@constantcontact.com",
"subject": "Holiday Special Newsletter",
"html_content": "<html><body>[[trackingImage]] <a href=\"http://www.constantcontact.com\">Visit ConstantContact.com!</a> </body></html>",
"permalink_url": "https://conta.cc/2GaQ8AY",
"preheader": "You don't want to miss this.",
"physical_address_in_footer": {
"address_line1": "123 Maple Street",
"address_line2": "Unit 1",
"address_optional": "Near Boston Fire Station",
"city": "Boston",
"country_code": "US",
"country_name": "United States",
"organization_name": "Jake Dodge's Pancakes",
"postal_code": "02451",
"state_code": "MA",
"state_non_us_name": "Victoria"
},
"document_id": "21babb03-8385-4739-b9cc-n6cce44633a7",
"document_properties": {
"style_content": ".white{color: #ffffff;}",
"letter_format": "XHTML",
"greeting_salutation": "Dear",
"greeting_name_type": "F",
"greeting_secondary": "Greetings!",
"subscribe_link_enabled": "false",
"subscribe_link_name": "Subscribe to my email list!",
"text_content": "<Text><Greeting/></Text>",
"permission_reminder_enabled": "false",
"permission_reminder": "Hi, just a reminder that you're receiving this email because you have expressed an interest in our company.",
"view_as_webpage_enabled": "false",
"view_as_webpage_text": "Having trouble viewing this email?",
"view_as_webpage_link_name": "Click here to view this email as a web page",
"forward_email_link_name": "Forward email"
}
}Response
Email campaign activity successfully updated.
Example response
{
"campaign_activity_id": "4c08372c-957a-48b5-bc45-72c7f00796cd",
"campaign_id": "8987dc1a-48ef-433a-b836-7ca4f9aa3481",
"role": "primary_email",
"contact_list_ids": [
"da10f460-3072-11e9-b282-fa163e6b01c1"
],
"segment_ids": [
1
],
"current_status": "DRAFT",
"format_type": 5,
"from_email": "jdodge@constantcontact.com",
"from_name": "Jake Dodge",
"reply_to_email": "jdodge@constantcontact.com",
"subject": "Holiday Special Newsletter",
"html_content": "<html><body>[[trackingImage]] <a href=\"http://www.constantcontact.com\">Visit ConstantContact.com!</a> </body></html>",
"permalink_url": "https://conta.cc/2GaQ8AY",
"preheader": "You don't want to miss this.",
"physical_address_in_footer": {
"address_line1": "123 Maple Street",
"address_line2": "Unit 1",
"address_optional": "Near Boston Fire Station",
"city": "Boston",
"country_code": "US",
"country_name": "United States",
"organization_name": "Jake Dodge's Pancakes",
"postal_code": "02451",
"state_code": "MA",
"state_non_us_name": "Victoria"
},
"document_id": "21babb03-8385-4739-b9cc-n6cce44633a7",
"document_properties": {
"style_content": ".white{color: #ffffff;}",
"letter_format": "XHTML",
"greeting_salutation": "Dear",
"greeting_name_type": "F",
"greeting_secondary": "Greetings!",
"subscribe_link_enabled": "false",
"subscribe_link_name": "Subscribe to my email list!",
"text_content": "<Text><Greeting/></Text>",
"permission_reminder_enabled": "false",
"permission_reminder": "Hi, just a reminder that you're receiving this email because you have expressed an interest in our company.",
"view_as_webpage_enabled": "false",
"view_as_webpage_text": "Having trouble viewing this email?",
"view_as_webpage_link_name": "Click here to view this email as a web page",
"forward_email_link_name": "Forward email"
}
}