Sends an approval mailing/ with provided ID to a given targetgroup. The targetgroup must be a test targetgroup. A regular targetgroup will be denied. Please be patient, the sendout might take a minute.
1 |
POST https://api.maileon.com/1.0/mailings/:mailingid/checks/approvalprocess |
Attributes
Parameter | Default | Description |
---|---|---|
test_targetgroup_id | The targetgroup of the test group the testmail should be sent to. |
Response
HTTP status code | Description |
---|---|
200 OK |
If everything was ok. |
400 Bad Request |
If the given targetgroup is not test targetgroup |
404 Not found |
If the target group cannot be found |
409 Conflict |
Mailing is sealed |
Example
200 OK
1 2 |
POST https://api.maileon.com/1.0/mailings/1245/checks/approvalprocess?test_targetgroup_id=123 200 |
400 Bad Request
1 2 |
POST https://api.maileon.com/1.0/mailings/3040/checks/approvalprocess?test_targetgroup_id=string_value 400 |
404 Not Found
1 2 3 |
POST https://api.maileon.com/1.0/mailings/3108/checks/approvalprocess?test_targetgroup_id=123 404 <error><message>Mailing with id 3108 not found.</message></error> |
409 Conflict
1 2 3 |
POST https://api.maileon.com/1.0/mailings/3040/checks/approvalprocess?test_targetgroup_id=123 409 <error><message>Mailing with ID 3040 cannot be changed as it is sealed.</message></error> |