Update a draft campaign
Describes the request and response details of this Moosend API endpoint to update a draft campaign.
Request
|
Parameter |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
|
header |
string |
true |
Determines the expected format and data type to retrieve the response data. Value: |
|
|
path |
string |
true |
The ID of the campaign that you want to update. |
|
|
path |
string |
true |
The supported file format for getting a response. Possible values: |
|
|
query |
string |
true |
The API key of your account. |
|
|
body |
string |
true |
The name of the campaign. |
|
|
body |
string |
false |
The subject line of the campaign. |
|
|
body |
string |
false |
The email address of the campaign sender. |
|
|
body |
string |
false |
The email address selected to receive replies from the campaign. This must be one of your campaign senders. If not specified, the |
|
|
body |
string |
false |
The email address used to send a confirmation message when the campaign has been successfully sent. This can be any valid email address. If not specified, the |
|
|
body |
string |
false |
The full HTML content of the campaign. You can use this instead of |
|
|
body |
string |
false |
The URL used to retrieve the HTML content of the campaign. Moosend automatically moves all CSS inline. |
|
|
body |
array |
false |
A list of email lists in your account that is used to send the campaign. |
|
|
body |
string |
false |
The ID of a segment in the selected email list. If not specified, the campaign is sent to all active subscribers of the email list. |
|
|
body |
Boolean |
false |
A flag that defines if a campaign is an A/B split campaign. If |
|
|
body |
Boolean |
false |
Specifies if tracking is enabled for the campaign. You must have Google Analytics configured on your site to use this feature. |
A/B split campaign parameters
Use these parameters when updating an A/B split campaign. If you specify any of the parameters below when updating a regular campaign, they are ignored in the request.
|
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
|
body |
string |
true |
Specify the type of test to be performed in the AB split campaign to determine the winning version:
|
|
|
body |
string |
false |
If testing A/B split campaigns with two subject line versions, this is the second subject version of the subject. |
|
|
body |
string |
false |
If testing A/B split campaigns with two HTML content versions, this is the web location of the second HTML content version. |
|
|
body |
string |
false |
If testing A/B split campaigns with two sender versions, this is the email address of the second campaign sender. This must be one of the senders defined in your account. |
|
|
body |
integer |
false |
Specify how long the test runs, before determining the winning campaign version to be sent to the rest of the recipients. This must be an integer between 1 and 24. |
|
|
body |
integer |
false |
Specifies a portion of the target recipients to get the test campaign versions. For example, if you specify 10, then 10% of your recipients receive campaign A and another 10% receive the campaign B version. This must be an integer between 5 and 40. |
|
|
body |
string |
false |
Specifies the method to determine the winning version for the test. If not set,
|
Response
|
Status |
Description |
Headers |
Schema |
|---|---|---|---|
|
|
The request is successful. |
|
N/A |
-
Code- the response code. This is0if successful. -
Error- the response error message. This isnullif successful. -
Context- this isnullif successful.