v1

latestOpenAPI 3.1.02026-07-2616459400.5 KB
Template APIs

Update Template

This endpoint allows you to update an existing template's name and HTML content using its template ID. Only the first block of HTML content from the array is stored.

patch/templates/{template_id}

Path parameters

template_idinteger required

ID of the template to update. Must be a positive integer.

Request body

namestring required

Updated name of the template. Must be unique and non-empty.

Example request

{
  "name": "Updated Welcome Email",
  "content": [
    {
      "type": "html",
      "value": "<html><body>Welcome to our service!</body></html>"
    }
  ]
}

Response

Template updated successfully.

idstring
namestring
addedstring
updated_atstring