Membuat templat email baru di DirectMail.
Deskripsi operasi
Description
-
Set the templateType parameter to
0to create a mail template. -
For a mail template, specify
templateSubject(email subject),templateNickName(sender name), andtemplateText(email HTML body). -
The template name (
templateName) must be unique within an account. -
Newly created templates have a default status of
pending approval.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateType |
integer |
No |
Tipe templat. |
0 |
| TemplateName |
string |
Yes |
Nama templat. |
template name |
| TemplateSubject |
string |
No |
Subjek email. |
subject test |
| TemplateNickName |
string |
No |
Nama pengirim. |
Tom |
| TemplateText |
string |
No |
Body HTML email. |
test |
| SmsType |
integer |
No |
Tidak digunakan lagi. Parameter ini dipertahankan untuk kompatibilitas mundur. |
Abandoned, historical reasons for compatibility |
| SmsContent |
string |
No |
Tidak digunakan lagi. Parameter ini dipertahankan untuk kompatibilitas mundur. |
Abandoned, historical reasons for compatibility |
| Remark |
string |
No |
Tidak digunakan lagi. Parameter ini dipertahankan untuk kompatibilitas mundur. |
Abandoned, historical reasons for compatibility |
| FromType |
integer |
No |
Tidak digunakan lagi. Parameter ini dipertahankan untuk kompatibilitas mundur. |
Abandoned, historical reasons for compatibility |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TemplateId |
integer |
The template ID. |
415366 |
| RequestId |
string |
The request ID. |
D1C7F6E1-6A4D-50B5-B864-640E9FCA8D0A |
Contoh
Respons sukses
JSONformat
{
"TemplateId": 415366,
"RequestId": "D1C7F6E1-6A4D-50B5-B864-640E9FCA8D0A"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.