Skip to main content

emailTemplateUpdate

Update an existing email template's configuration.

Modifies email template details including content, localization, recipients, and settings while preserving template history and references.

Possible errors:

  • TEMPLATE_NOT_FOUND: Template with specified ID does not exist
  • TEMPLATE_UPDATE_ERROR: Failed to update template due to system issues
  • HANDLEBARS_PRECOMPILE_ERROR: Template precompilation failed due to syntax errorsAUTH: Role=[configuration.OWNER,configuration.EDITOR]
emailTemplateUpdate(
id: String!
input: EmailTemplateUpdateInput!
): EmailTemplate!

Arguments

emailTemplateUpdate.id ● String! non-null scalar

Unique identifier for the email template to update.

UUID that uniquely identifies the email template in the system, used for targeting the specific template for modification.

emailTemplateUpdate.input ● EmailTemplateUpdateInput! non-null input

Email template update data.

Partial configuration for updating an existing email template, all fields are optional for selective modifications of content, recipients, and settings.

Type

EmailTemplate object

Email template for automated messaging and communication campaigns.

Defines the structure, content, and configuration for email messages including localized content, recipients, attachments, and dynamic data integration. Used for transactional emails, marketing campaigns, and system notifications.