v1

latestOpenAPI 3.0.3“Commons Clause” License Condition v1.02026-07-17231343.3 KB
templates

Update an existing template

Update an existing template

put/templates/{id}

Path parameters

idinteger required

ID of the object

Request body

namestring required

The name of the new template, must be unique.

subject_partstring required

The subject part

html_partstring required

The HTML content used in the e-mail campaign.

text_partstring required

The text content used in the e-mail campaign.

Example request

{
  "name": "HelloWorld",
  "subject_part": "Welcome {{name}} to mailbadger.io!",
  "html_part": "<div>Hello {{name}}, welcome to mailbadger.io</div>",
  "text_part": "Hello {{name}}, welcome to mailbadger.io"
}

Response

OK

idinteger

The ID of the resource.

created_atstring date-time

The date and time when the resource was created.

updated_atstring date-time

The date and time when the resource was last updated.

namestring

The name of the template.

subject_partstring

The subject part.

html_partstring

The HTML content used in the e-mail campaign.

text_partstring

The text content used in the e-mail campaign.

Example response

{
  "id": 111,
  "name": "Welcome",
  "subject_part": "Welcome to Mailbadger {{name}}!",
  "html_part": "<div>Hello {{name}}, welcome to mailbadger.io</div>",
  "text_part": "Hello {{name}}, welcome to mailbadger.io"
}