email templates

Update Email Template

Update an existing email template in your CPaaS account.

put/mailagents/{mailagent-alias}/templates/{template-key}

Request

  • Base URL
    https://cpaas.zoho.com/v1.1
  • Auth
    • OAuth 2
      Authorization code: https://accounts.zoho.com/oauth/v2/auth
      Token URL: https://accounts.zoho.com/oauth/v2/token scopes: Zeptomail.MailTemplates.UPDATE
    • or OAuth 2
      Authorization code: https://accounts.zoho.com/oauth/v2/auth
      Token URL: https://accounts.zoho.com/oauth/v2/token scopes: Zeptomail.MailTemplates.ALL

Path parameters

mailagent-aliasstring required
Example:your-mailagent-alias

Unique alias of the Mail Agent.

template-keystring required
Example:1234567890

Unique key of the email template.

Request body

htmlbodystring

HTML content of the email template.

template_namestring

Display name of the email template.

subjectstring

Subject line of the email template.

Example request

{
  "htmlbody": "<h1> Hi User </h1>, Welcome aboard",
  "template_name": "E-invite",
  "subject": "Invitation to the event"
}

Response

Template updated successfully.

statusstring

Example response

{
  "data": {
    "template_key": "1234567890",
    "template_name": "E-invite (new)"
  },
  "status": "success"
}

Changes

No recorded changes to this operation across all 1 revision of this API.