mutation UpdateAutomationWorkflow($input: UpdateAutomationWorkflowInput!) {
updateAutomationWorkflow(input: $input) {
automationWorkflow {
actions {
asset {
__typename
}
contentAssets {
__typename
}
createdAt
delaySeconds
displayName
embeddedLink {
__typename
}
}
billingPlanRestricted
createdAt
creator {
ambassadorLevel
ambassadorLevelId
avatarUrl
badges {
__typename
}
conversations {
__typename
}
createdAt
}
description
filter {
aiFilterPrompt
marketingAudiences {
__typename
}
resourceId
}
}
clientMutationId
errors
}
}{
"input": {
"id": "id"
}
}{
"data": {
"updateAutomationWorkflow": {
"automationWorkflow": {
"actions": [
{
"asset": {
"__typename": "Asset"
},
"contentAssets": [
{
"__typename": "Asset"
}
],
"createdAt": "value",
"delaySeconds": 1,
"displayName": "string",
"embeddedLink": {
"__typename": "EmbeddedLink"
}
}
],
"billingPlanRestricted": true,
"createdAt": "value",
"creator": {
"ambassadorLevel": "string",
"ambassadorLevelId": 1,
"avatarUrl": "string",
"badges": [
{
"__typename": "Badge"
}
],
"conversations": {
"__typename": "PublicConversationConnection"
},
"createdAt": "value"
},
"description": "string",
"filter": {
"aiFilterPrompt": "string",
"marketingAudiences": [
{
"__typename": "MarketingAudience"
}
],
"resourceId": "id"
}
},
"clientMutationId": "string",
"errors": [
"string"
]
}
}
}updateAutomationWorkflow
Update an automation workflow, its trigger, its actions, and its audience
filter. Omit trigger or actions to leave them unchanged. Each action sent is
kept by its id alone, or changed in place when sent with its type; an action
sent with the type and parameters it reads back is kept as it is stored.
Resuming a paused workflow or saving a suspended one re-validates every
action, so a workflow whose configuration has gone stale cannot be resumed
here — pause it with pauseAutomationWorkflow instead. A workflow whose
trigger target was deleted stays suspended when saved without a new trigger
target, and paused: false is refused until the trigger names one that exists.
Required scope: host:write:network_integrations
updateAutomationWorkflow(input: UpdateAutomationWorkflowInput!): UpdateAutomationWorkflowPayloadArguments
Parameters for UpdateAutomationWorkflow
A unique identifier for the client performing the mutation.
mutation UpdateAutomationWorkflow($input: UpdateAutomationWorkflowInput!) {
updateAutomationWorkflow(input: $input) {
automationWorkflow {
actions {
asset {
__typename
}
contentAssets {
__typename
}
createdAt
delaySeconds
displayName
embeddedLink {
__typename
}
}
billingPlanRestricted
createdAt
creator {
ambassadorLevel
ambassadorLevelId
avatarUrl
badges {
__typename
}
conversations {
__typename
}
createdAt
}
description
filter {
aiFilterPrompt
marketingAudiences {
__typename
}
resourceId
}
}
clientMutationId
errors
}
}{
"input": {
"id": "id"
}
}{
"data": {
"updateAutomationWorkflow": {
"automationWorkflow": {
"actions": [
{
"asset": {
"__typename": "Asset"
},
"contentAssets": [
{
"__typename": "Asset"
}
],
"createdAt": "value",
"delaySeconds": 1,
"displayName": "string",
"embeddedLink": {
"__typename": "EmbeddedLink"
}
}
],
"billingPlanRestricted": true,
"createdAt": "value",
"creator": {
"ambassadorLevel": "string",
"ambassadorLevelId": 1,
"avatarUrl": "string",
"badges": [
{
"__typename": "Badge"
}
],
"conversations": {
"__typename": "PublicConversationConnection"
},
"createdAt": "value"
},
"description": "string",
"filter": {
"aiFilterPrompt": "string",
"marketingAudiences": [
{
"__typename": "MarketingAudience"
}
],
"resourceId": "id"
}
},
"clientMutationId": "string",
"errors": [
"string"
]
}
}
}