| Variabila | Tip | Descriere |
|---|---|---|
| list_id | int|string | ID-ul listei pe baza căreia va fi identificat contul SMTP |
| account_id | string|boolean | ID-ul unui anumit cont SMTP din care să fie preluat template-ul (opțional). |
| type | string | Tipul conținutului. Poate fi text sau html. |
| content | string | Conținutul template-ului. |
| Parametru | Descriere |
|---|---|
| boolean | True dacă salvarea a reușit, False altfel |
true | Cod | Mesaj | Descriere |
|---|---|---|
| 407 | Missing required param list_id | Parametrul list_id este obligatoriu |
| 101 | Not allowed for list_id = %s | Acces nepermis la list_id |
| 17001 | Invalid message | Valoarea parametrului message este invalidă |
| 17003 | Could not find the SMTP account | Nu a fost găsit contul SMTP |
| 17004 | The SMTP account is inactive | Contul SMTP este inactiv |
| 17008 | The template could not be saved: [error_reason] | Template-ul nu a putut fi salvat |
| 17009 | Type must be either text or html | Type trebuie să fie text sau html |
| 17009 | Content may not be empty | Content nu poate să fie gol |
{ "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 }