v1

latestOpenAPI 3.1.02026-07-26359254.7 MB
Email Templates

Update an email template

<small>Requires the sequences:write scope (or a broader one that includes it).</small>

Updates an existing email template.

put/v3/email-templates/{id}

Path parameters

idinteger required

Email template ID

Request body

namestring required

Name of the email template

subjectstring nullable

Email subject line

bodystring required

HTML body of the email template

attachmentIdsinteger[]

List of attachment IDs to associate with the template (replaces existing attachments)

Example request

{
  "name": "Updated welcome email",
  "subject": "Welcome!",
  "body": "<p>Hi {{firstName}},</p><p>Updated content.</p>",
  "attachmentIds": [
    42
  ]
}

Response

Email template updated successfully

idinteger

Unique identifier for the email template

namestring

Name of the email template

subjectstring nullable

Email subject line

bodystring

HTML body of the email template

folderIdinteger nullable

ID of the folder containing this template

folderTypestring nullable

Type of the folder (e.g., "personal", "shared")

createdAtstring date-time

Timestamp when the template was created

updatedAtstring date-time

Timestamp when the template was last updated

Example response

{
  "id": 101,
  "name": "Follow-up template",
  "subject": "Quick follow-up",
  "body": "<p>Hi {{firstName}},</p>",
  "folderId": 5,
  "folderType": "personal",
  "attachments": [],
  "createdAt": "2026-01-15T10:30:00Z",
  "updatedAt": "2026-02-20T14:00:00Z"
}