| Variable | Type | Description |
|---|---|---|
| list_id | string|int | The list_id in which the newsletter is created |
| html | base64|string|boolean | The html content or false if no html present |
| text | base64|string|boolean | The text alternative or false if no text present |
| newsletter_props | struct|array | Hash array with newsletter props. Allowed keys are:
|
| Parameter | Description |
|---|---|
| int | The ID of the newsletter |
"80011" | Code | Message | Description |
|---|---|---|
| 407 | Missing required param list_id | list_id param is required |
| 407 | Missing required param html | html param is required |
| 407 | Missing required param text | text param is required |
| 407 | Missing required param newsletter_props | newsletter_props param is required |
| 101 | Not allowed for list_id = %s | Invalid access to list_id |
| 132 | Missing both html and txt content. | Missing both html and txt content. |
| 133 | Missing subject param. | subject not found in newsletter_props |
| 1317 | List from email is not validated | The from email must be on a validated domain |
| 132 | Campaign content validation errors: %s | Campaign content contains forbidden elements (eg: script tags) |
{ "err": true, "message": "Missing required param list_id", "code": 407 }
{ "err": true, "message": "Missing both html and txt content.", "code": 132 }
{ "err": true, "message": "Missing subject param.", "code": 133 }
{ "err": true, "message": "List from email is not validated", "code": 1317 }