Skip to content

Rule.io SDK


Rule.io SDK / client/src / UpdateEmailAutomationPayload

Interface: UpdateEmailAutomationPayload

Defined in: client/src/resources/automations/automations.types.ts:226

Payload for AutomationsClient.updateEmailAutomation.

All fields are optional — only the fields you include are changed. The client fetches the existing record, merges your changes over it, and writes the complete merged body back to the API.

Example

typescript
// Pause an automation
await client.automations.updateEmailAutomation(automationId, { active: false });

// Change the trigger
await client.automations.updateEmailAutomation(automationId, {
  trigger: { type: 'SEGMENT', id: segmentId },
});

Properties

active?

optional active?: boolean

Defined in: client/src/resources/automations/automations.types.ts:234

New active state.

false pauses the automation without deleting it.


name?

optional name?: string

Defined in: client/src/resources/automations/automations.types.ts:228

New name.


sendoutType?

optional sendoutType?: AutomationSendoutType

Defined in: client/src/resources/automations/automations.types.ts:247

New sendout type.

'marketing' = standard marketing email. 'transactional' = triggered transactional email.


trigger?

optional trigger?: AutomationTrigger

Defined in: client/src/resources/automations/automations.types.ts:240

New trigger configuration.

type must be uppercase.