Create a Campaign

Create a campaign

Create a new campaign

POST https://api.cm.com/bulkemail/v1.0/accounts/{accountID}/campaigns

POST Parameters

NameInDescriptionRequiredTypeExample
AccountIDPathThe account guidTrueGUIDA8C062E4-ECFD-48D0-89B1-A37D2622B7A9
BodyBodyThe campaign to createTrueJson objectSee example request
X-CM-PRODUCTTOKENHeaderYour product tokenTrueGUIDC24A5029-37DD-4161-9728-F80D8639588E
{
    "Name": "Demo campaign",
    "CampaignType": 1,
    "CampaignState": 1,
    "ToAddressListID": "3de57f95-9d82-48f6-8173-9492df295615",
    "ScheduledOnUtc": null,
    "TestPercentage": 0.10,
    "TestDurationMinutes": 240,
    "TestMetricType": 1
}

Responses

Http statusDescription
201Campaign created
400Bad request
{
	"ID": "77e6a0e6-0c92-4138-89bd-886edf2ecc0d",
	"AccountID": "a8c062e4-ecfd-48d0-89b1-a37d2622b7a9",
	"Name": "Demo campaign",
	"CampaignType": 1,
	"CampaignState": 1,
	"ToAddressListID": "3de57f95-9d82-48f6-8173-9492df295615",
	"ScheduledOn": null,
	"ScheduledOnUtc": null,
	"TestPercentage": 0.1,
	"TestDurationMinutes": 240,
	"TestMetricType": 1,
	"SendToRemainingOn": null,
	"SendToRemainingOnUtc": null,
	"WinningVariationID": null,
	"TotalRecipients": 1,
	"PreviewHtmlBody": null,
	"CampaignTags": null,
	"GoogleAnaylyticsTracking": null,
	"LanguageConfiguration": null,
	"CreatedOn": "2019-03-27T15:13:45.127",
	"CreatedOnUtc": "2019-03-27T14:13:45.127Z",
	"ModifiedOn": "2019-03-27T15:13:45.127",
	"ModifiedOnUtc": "2019-03-27T14:13:45.127Z",
	"DeletedOn": null,
	"DeletedOnUtc": null
}