Add a number of entries to an existing blacklist.
Request
1 |
POST https://api.maileon.com/1.0/blacklists/:blacklistId/actions |
Media type: application/vnd.maileon.api+xml
Example request body:
<add_entries_action> <import_name>blacklist import 2014-06-18</import_name> <entries> <entry>nasty@spamtrap.com</entry> <entry>postmaster@*</entry> <entry>*@example.com</entry> </entries> </add_entries_action>
Providing a non-empty value for <import_name>
is optional. This value is displayed only in the user interface, not as a result of calls to Get Blacklist.
Response
HTTP status code | Description |
---|---|
201 Created |
The entries were successfully added to the blacklist. |
403 Forbidden |
The supplied blacklistId does not identify a blacklist that belongs to your account. |