Content Create and Update

Create Content

Usage: POST /data/campaign/campaign_id/{campaign id}/content

POST Data


{
"name":"Meaningful Content Name-27",
"subject":"Meaningful Content Subject-27",
"type":1,
"archive":false,
"transportEncryption":"0",
"listUnsubscribeHeader":false,
"reparseContentFlag":false,
"sendModeOverride":0,"languageID":1,
"sendHeaderWithCampaignIdentification":false,
"htmlContentURL": "http://content.brickst.net/test_html_content",
"textContentURL": "http://content.brickst.net/test_text_content",
"shortTextContentURL": "http://content.brickst.net/test_shorttext_content",
"referralContentURL": "http://content.brickst.net/test_referral_content"
}

Return the new Content object

Response JSON Response Data

{
"id":222,
"campaignID":220,"name":"Meaningful Content Name-27",
"subject":"Meaningful Content Subject-27",
"type":1,
"senderID":0,
"htmlContentURL":"http://content.brickst.net/APAC_Content/CCTA-1.html",
"textContentURL":"http://content.brickst.net/test_text_content",
"shortTextContentURL":"http://content.brickst.net/test_shorttext_content",
"referralContentURL":"http://content.brickst.net/test_referral_content",
"archive":false,
"transportEncryption":0,
"listUnsubscribeHeader":false,
"reparseContentFlag":false,
"sendModeOverride":0,
"languageID":1,
"sendHeaderWithCampaignIdentification":false
}

Update Content By Id

Usage: PUT /data/campaign/campaign_id/{campaign_id}/content/id/{content id}

PUT Data


{
"id":222,
"campaignID":220,"name":"Meaningful Content Name-27",
"subject":"Meaningful Content Subject-27",
"type":1,
"senderID":0,
"htmlContentURL":"http://content.brickst.net/APAC_Content/CCTA-1.html",
"textContentURL":"http://content.brickst.net/test_text_content",
"shortTextContentURL":"http://content.brickst.net/test_shorttext_content",
"referralContentURL":"http://content.brickst.net/test_referral_content",
"archive":true,
"transportEncryption":0,
"listUnsubscribeHeader":false,
"reparseContentFlag":false,
"sendModeOverride":0,
"languageID":1,
"sendHeaderWithCampaignIdentification":false
}

Saves the Content object to the database and returns the updated object

Example JSON Response Data

{
"id":222,
"campaignID":220,
"name":"Meaningful Content Name-2777",
"subject":"Meaningful Content Subject-27",
"type":1,
"senderID":0,
"htmlContentURL":"http://content.brickst.net/APAC_Content/CCTA-1.html",
"textContentURL":null,
"shortTextContentURL":null,
"referralContentURL":null,
"archive":true,
"transportEncryption":0,
"listUnsubscribeHeader":false,
"reparseContentFlag":false,
"sendModeOverride":0,
"languageID":1,
"sendHeaderWithCampaignIdentification":false
}