> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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`



**mutation** `updateAutomationWorkflow(input: UpdateAutomationWorkflowInput!): UpdateAutomationWorkflowPayload`

## Arguments

**`input`**: `UpdateAutomationWorkflowInput!` (required)

Parameters for UpdateAutomationWorkflow

## Returns

`UpdateAutomationWorkflowPayload`

**`automationWorkflow`**: `AutomationWorkflow`

---

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`errors`**: `[String!]!`

## Examples

```graphql 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
  }
}
```

```json Variables
{
  "input": {
    "id": "id"
  }
}
```

```json Response
{
  "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"
      ]
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.