Creates a mailing blacklist.
1 |
POST https://api.maileon.com/1.0/mailingblacklists |
Parameter | Required |
Description |
name | true | Name of the mailing blacklist. The name must be unique within the account. The name length must be in the range from 3 to 64 and should only contain alphanumeric characters or spaces. |
Response Codes
HTTP status code | Description |
---|---|
201 Created |
Default status when everything worked well. |
400 Bad request |
Something with the request is wrong, e.g. wrong xml syntax or missing values. |
500 Internal Error |
An unexpected error occured. |
Example
1 2 3 4 |
POST https://api.maileon.com/1.0/mailingblacklists?name=api+test Content-Type: application/vnd.maileon.api+xml; charset=utf-8 Accept: application/vnd.maileon.api+xml;charset=utf-8 |
1 2 3 4 |
Status: 201 Created Content-Type: application/vnd.maileon.api+xml; charset=utf-8 <id>29</id> |