Skip to main content
POST
/
mail_templates
/
{template_id}
/
make_default
Make Default
curl --request POST \
  --url https://api.sandbox.monite.com/v1/mail_templates/{template_id}/make_default \
  --header 'Authorization: Bearer <token>' \
  --header 'x-monite-version: <x-monite-version>'
{
  "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

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