Skip to content
Go to Micro

Delete a triggered automation and its filter trees

client.triggeredAutomations.delete(stringautomationID, TriggeredAutomationDeleteParams { teamId, automationObjectType } params, RequestOptionsoptions?): void
DELETE/v2/prism/{teamId}/{automationObjectType}/triggered_automations/{automationId}

Delete a triggered automation and its filter trees

ParametersExpand Collapse
automationID: string
formatuuid
params: TriggeredAutomationDeleteParams { teamId, automationObjectType }
teamId?: string
formatuuid
automationObjectType: "message" | "action" | "event" | 6 more

Object types that support triggered automations. Must match the triggered-automation whitelist in @micro/database migrate-sql (TRIGGERED_AUTOMATION_OBJECTS).

One of the following:
"message"
"action"
"event"
"document"
"identity"
"linkedin_message"
"deal"
"organization"
"contact"

Delete a triggered automation and its filter trees

import Micro from '@micro-so/sdk';

const client = new Micro({
  teamID: 'My Team ID',
  apiKey: process.env['MICRO_API_KEY'], // This is the default and can be omitted
});

await client.triggeredAutomations.delete('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
  automationObjectType: 'message',
});
Returns Examples