Skip to content

UpdateEmailRequest

Type: object

Request body for updating an email.

Properties

Property Type Required Description Constraints
name string No
description string No
data model: DataDTO No
headers model: UpdateEmailHeadersDTO No
editorContext model: EditorContextDto No
settings model: EmailSettingsDTO No
templateId string No When provided, the template's content overwrites both the email's existing content and any data sent in the request.

Generated example

{
  "name": "Example name",
  "description": "string",
  "data": {
    "html": {
      "body": "string"
    },
    "text": {
      "body": "string",
      "syncFromHtml": true
    }
  },
  "headers": {
    "ccEmails": [
      "person@example.com"
    ],
    "fromEmail": "person@example.com",
    "fromName": "Example name",
    "preheader": "string",
    "replyEmail": "person@example.com",
    "subject": "string"
  },
  "editorContext": {
    "dynamicContent": {}
  },
  "settings": {
    "brandedDomain": "string",
    "dedicatedIp": "string",
    "enableUrlTracking": true,
    "isOperational": true,
    "isTextOnly": true,
    "isWebPageView": true
  },
  "templateId": "123"
}

Referenced models

Source

Generated from swagger-asset.json.