Skip to main content

emailTemplateRemoveAttachment

Remove a document attachment from an email template.

Detaches a specified document template from the email template, reducing the email size and removing the attachment from future email sends.

Possible errors:

  • TEMPLATE_NOT_FOUND: Email template with specified ID does not exist
  • TEMPLATE_UPDATE_ERROR: Failed to remove attachment due to system issues
emailTemplateRemoveAttachment(
id: String!
documentTemplateId: String!
): EmailTemplate!

Arguments

emailTemplateRemoveAttachment.id ● String! non-null scalar

Unique identifier for the email template.

UUID that uniquely identifies the email template from which the attachment will be removed.

emailTemplateRemoveAttachment.documentTemplateId ● String! non-null scalar

Unique identifier for the document template attachment.

UUID that uniquely identifies the document template attachment that will be removed from the email template.

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.