For regular mails (newsletters) it is possible to set a flag for deleting the used contact group and filter after successful sendout. The group and filter must not be used in other locations, e.g. other contact filters, transaction mails and the like, otherwise they cannot be removed.
1 |
POST https://api.maileon.com/1.0/mailings/:mailingid/settings/post_sendout_cleanup |
Response
HTTP status code | Description |
---|---|
204 No Content |
If everything was ok. |
400 Bad request |
Property or value can not be accepted |
404 Not found |
Mailing ID cannot be found |
Example
204 No Content
1 2 3 |
POST https://api.maileon.com/1.0/mailings/1234/settings/post_sendout_cleanup <cleanup>true</cleanup> 204 |
400 Bad Request
1 2 3 |
POST https://api.maileon.com/1.0/mailings/1234/settings/post_sendout_cleanup <cleanup>test</cleanup> 400: <error><message>value for key 'cleanup' not allowed</message></error> |
404 Not Found
1 2 3 4 |
POST https://api.maileon.com/1.0/mailings/3416/settings/post_sendout_cleanup <cleanup>true</cleanup> 404 <error><message>Mailing with id 3416 not found.</message></error> |