Skip to content

Rule.io SDK


Rule.io SDK / client/src / UpdateSmsTemplatePayload

Interface: UpdateSmsTemplatePayload

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

Payload for TemplatesClient.updateSmsTemplate.

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

Example

typescript
import { createSmsDocument } from '@rule/rcml';

await client.templates.updateSmsTemplate(templateId, {
  content: createSmsDocument({ content: 'Your order has shipped — updated!' }),
});

Properties

content?

optional content?: SmsDocument

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

New SMS document body.


name?

optional name?: string

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

New name for the template.