Variable | Type | Description |
---|---|---|
list_id | int|string | The ID of the list from which to identify the SMTP account |
account_id | string|boolean | The id of a specific SMTP ACCOUNT from which to fetch the template (optional). |
type | string | The type of the content. Could be either text or html. |
content | string | The body of the template. |
Parameter | Description |
---|---|
boolean | True if the save has succeeded, False otherwise |
true
Code | Message | Description |
---|---|---|
407 | Missing required param list_id | list_id param is required |
101 | Not allowed for list_id = %s | Invalid access to list_id |
17003 | Could not find the SMTP account | Transactional account not found |
17004 | The SMTP account is inactive | The transactional account is inactive |
17008 | The template could not be saved: [error_reason] | The template could not be saved |
17009 | Type must be either text or html | Type must be either text or html |
17009 | Content may not be empty | Content may not be empty |
{ "err": true, "message": "Missing required param list_id", "code": 407 }
{ "err": true, "message": "Could not find the SMTP account", "code": 17003 }
{ "err": true, "message": "The SMTP account is inactive", "code": 17004 }
{ "err": true, "message": "The template could not be saved: [error_reason]", "code": 17008 }