Skip to content

Rule.io SDK


Rule.io SDK / client/src / UpdateEmailTemplatePayload

Interface: UpdateEmailTemplatePayload

Defined in: client/src/resources/templates/templates.types.ts:178

Payload for TemplatesClient.updateEmailTemplate.

All fields are optional — only the fields you include are changed.

Example

typescript
await client.templates.updateEmailTemplate(templateId, {
  name: 'Welcome email — v2',
  content: updatedRcmlDocument,
});

Properties

content?

optional content?: RcmlDocument

Defined in: client/src/resources/templates/templates.types.ts:182

New RCML document body.


name?

optional name?: string

Defined in: client/src/resources/templates/templates.types.ts:180

New name for the template.