Update Email Template

Modify an existing template (recommended for long/special character content). Semantics: OMIT a field to keep its original value (dynamic SQL skips null); supplying a field overwrites it. Empty strings are NOT 'keep original': empty html/text/subject are rejected (40212/40214/40210), empty name clears the name. Side effects: review state is reset to approved and gmtModified is refreshed.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Form Data
string
required

Authentication credential; invalid credentials return 40005.

string
required

Authentication credential; invalid credentials return 40005.

string
required
length between 1 and 64

Calling name of the template to update. Missing → 40201; longer than 64 chars → 40202; no template found → 40216 (checked AFTER all field validations).

string
length ≤ 64

New template name. Omit to keep the original. Empty string is ACCEPTED and clears the name (checker only rejects > 64 chars, 40208).

string

New HTML content. Omit to keep the original; empty string → 40212; containing JavaScript → 40231. (Official page's 'leave empty to keep the original content' was wrong — 165 No.12712.)

string

UNDOCUMENTED on the official page: new plain-text content. Omit to keep the original; empty string → 40214.

string
length between 1 and 512

New template subject. Omit to keep the original; empty or longer than 512 chars → 40210.

integer
enum

New template type (0 = Trigger, 1 = Batch). Omit to keep the original; other values → 40204.

Allowed:
Response

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json