К сожалению, эта страница еще не переведена. Уже совсем скоро вся документация будет доступна вам на родном языке.
Deletes an email campaign and all related launches, including any pending launches.
Endpoint
POST https://api.emarsys.net/api/v2/email/delete
Parameters
Name | Type | Description | Comments |
---|---|---|---|
emailId | int | ID of the email campaign |
Result Example
{ "replyCode": 0, "replyText": "OK", "data": {} }
Errors
HTTP Code | Reply Code | Message | Description |
---|---|---|---|
400 | 6004 | Invalid email ID | No email was found with the given ID, or the email belongs to another customer. |
400 | 6020 | Error: could not delete the email. | |
400 | 6021 | In order to delete an event-based email campaign, you have to deactivate it first. | The selected email is an active event-based email; active event-based emails cannot be deleted. |
400 | 6022 | You cannot delete this email, because it is used by the following programs: <program names> | If an email is used by an active program, you cannot delete it. You must either end the program or change the email. |