Reference
Mutations#
draftAutomation#
Drafts an automation from a plain-language description. Nothing is saved: the editor opens the draft for review.
Requires: scope automations:write · feature automations.
draftAutomation(ownerType: AutomationOwnerType!, ownerId: ID!, request: String!): AutomationDraftModel!
| Argument | Type | |
|---|---|---|
ownerType | AutomationOwnerType! | |
ownerId | ID! | |
request | String! |
createAutomation#
Requires: scope automations:write · feature automations.
createAutomation(input: CreateAutomationInput!): AutomationModel!
| Argument | Type | |
|---|---|---|
input | CreateAutomationInput! |
updateAutomation#
Requires: scope automations:write · feature automations.
updateAutomation(id: ID!, input: UpdateAutomationInput!): AutomationModel!
| Argument | Type | |
|---|---|---|
id | ID! | |
input | UpdateAutomationInput! |
setAutomationEnabled#
Requires: scope automations:write · feature automations.
setAutomationEnabled(id: ID!, enabled: Boolean!): AutomationModel!
| Argument | Type | |
|---|---|---|
id | ID! | |
enabled | Boolean! |
deleteAutomation#
Requires: scope automations:write · feature automations.
deleteAutomation(id: ID!): Boolean!
| Argument | Type | |
|---|---|---|
id | ID! |
simulateAutomation#
Requires: scope automations:write · feature automations.
simulateAutomation(id: ID!, input: SimulateAutomationInput): AutomationRunDetail!
| Argument | Type | |
|---|---|---|
id | ID! | |
input | SimulateAutomationInput |