v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-25173140700.7 KB
Template

Update an email template

Update an existing email template.

patch/templates/{template_id}

Path parameters

template_idinteger required

ID of the template to update.

ID of the template to update.

Query parameters

tenant_idinteger
cookie_namestring nullable

Request body

namestring nullable

Human-readable label for the template. Max 100 characters.

text_bodystring required

Plain-text body of the email.

html_bodystring nullable

Optional HTML body of the email.

Example request

{
  "name": "Welcome email",
  "text_body": "Welcome to Neuland AI Hub!",
  "html_body": "<p>Welcome to Neuland AI Hub!</p>"
}

Response

Successful Response

idinteger required

Unique identifier of the template.

namestring nullable required

Human-readable label for the template.

text_bodystring required

Plain-text body of the email.

html_bodystring nullable required

HTML body of the email, or null if none.

Example response

{
  "id": 42,
  "name": "Welcome email",
  "text_body": "Welcome to Neuland AI Hub!",
  "html_body": "<p>Welcome to Neuland AI Hub!</p>"
}