Skip to main content
PATCH
/
mail_templates
/
{template_id}
Update
curl --request PATCH \
  --url https://api.sandbox.monite.com/v1/mail_templates/{template_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-monite-version: <x-monite-version>' \
  --data '
{
  "body_template": "<string>",
  "language": "ab",
  "name": "<string>",
  "subject_template": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "body_template": "<string>",
  "is_default": true,
  "language": "<string>",
  "name": "<string>",
  "subject_template": "<string>",
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-monite-version
string<date>
required

Path Parameters

template_id
string<uuid>
required

Body

application/json
body_template
string

Jinja2 compatible string with email body

language
enum<string>

Lowercase ISO code of language

Available options:
ab,
aa,
af,
ak,
sq,
am,
ar,
an,
hy,
av,
ae,
ay,
az,
bm,
ba,
eu,
be,
bn,
bi,
bs,
br,
bg,
my,
ca,
ch,
ce,
ny,
zh,
cu,
cv,
kw,
co,
cr,
hr,
cs,
da,
dv,
nl,
dz,
en,
eo,
et,
ee,
fo,
fj,
fi,
fr,
fy,
ff,
gd,
gl,
lg,
ka,
de,
el,
kl,
gn,
gu,
ht,
ha,
he,
hz,
hi,
ho,
hu,
io,
ig,
id,
ia,
ie,
iu,
ik,
ga,
it,
ja,
jv,
kn,
kr,
ks,
kk,
km,
ki,
rw,
ky,
kv,
kg,
ko,
kj,
ku,
lo,
la,
lv,
li,
ln,
lt,
lu,
lb,
mk,
mg,
ms,
ml,
mt,
gv,
mi,
mr,
mh,
mn,
na,
nv,
nd,
nr,
ng,
ne,
no,
nb,
nn,
ii,
oc,
oj,
om,
os,
pi,
ps,
fa,
pl,
pt,
pa,
qu,
ro,
rm,
rn,
ru,
se,
sm,
sg,
sa,
sc,
sr,
sn,
sd,
si,
sk,
sl,
so,
st,
es,
su,
sw,
ss,
sv,
tl,
ty,
tg,
ta,
tt,
te,
th,
bo,
ti,
to,
ts,
tn,
tr,
tk,
tw,
ug,
uk,
ur,
uz,
ve,
vi,
vo,
wa,
cy,
wo,
xh,
yi,
yo,
za,
zu
name
string

Custom template name

Required string length: 1 - 128
subject_template
string

Jinja2 compatible string with email subject

Response

Successful Response

id
string<uuid>
required

ID of email template

created_at
string<date-time>
required

Template created date and time

updated_at
string<date-time>
required

Template updated date and time

body_template
string
required

Jinja2 compatible email body template

is_default
boolean
required

Is default template

language
string
required

Lowercase ISO code of language

Maximum string length: 4
name
string
required

Name of the template

Maximum string length: 128
subject_template
string
required

Jinja2 compatible email subject template

Maximum string length: 2048
type
string
required

Document type of content