Skip to main content
MUTATION
emailTemplatesAdd(name: String!, content: String, blocksJson: String, globalStyles: String): EmailTemplate

Arguments

name
String!
required

Display name for the template picker and search.

content
String

Optional initial rendered HTML content.

blocksJson
String

Optional initial block-editor structure (JSON string).

globalStyles
String

Optional shared CSS applied across the template's blocks.

_id
String!

Unique template identifier.

name
String!

Display name in the template picker and emailTemplates search.

content
String

Rendered HTML content of the template.

blocksJson
String

Block-editor structure (JSON string) used to re-render and edit the template.

globalStyles
String

Shared CSS applied across the template's blocks.

status
String

Lifecycle status (e.g. draft, published). Set via emailTemplatesChangeStatus.

createdBy
String

User id that created this template.

createdAt
Date

When this template was created.

modifiedAt
Date

When this template was last modified.

createdUser

Resolved User that created this template.

Mutation
Variables
Response
آخر تعديل في ١١ أغسطس ٢٠٢٦