# update_automation_workflow

Update a workflow's name or activate/deactivate it. At least one of `name` or `active` must be provided. A workflow can
only be activated once it has a hook and at least one action.

<!-- INPUT_BLOCK_START -->

## Input

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `workspaceId` | `string` | Yes | The ID of the workspace |
| `workflowId` | `string` | Yes | The ID of the workflow to update |
| `name` | `string` | No | Updated name for the workflow |
| `active` | `boolean` | No | Whether the workflow should be active (true) or inactive (false) |

<!-- INPUT_BLOCK_END -->

<!-- OUTPUT_BLOCK_START -->

## Output

| Field | Type | Description |
| --- | --- | --- |
| `content` | `ContentItem[]` | Array of content items returned by the tool - [ContentItem](#contentitem) |
| `isError` | `boolean` | Whether the tool execution resulted in an error |

### ContentItem

| Field | Type | Description |
| --- | --- | --- |
| `type` | `'text'` | Content type (currently only 'text' is supported) |
| `text` | `string` | The text content to display |

<!-- OUTPUT_BLOCK_END -->
