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

# Update Workflow

> Update a workflow's name, trigger, steps, or enabled state.

## Authentication

Requires a Bearer token with `tools` scope. See [Authentication](/api-reference/authentication).

## Path Parameters

<ParamField path="id" type="string" required>
  The workflow UUID.
</ParamField>

## Request

All fields are optional — include only what you want to change.

<ParamField body="name" type="string">
  Display name for the workflow.
</ParamField>

<ParamField body="triggerType" type="string">
  How the workflow is triggered (e.g., `manual`, `schedule`, `event`).
</ParamField>

<ParamField body="triggerConfig" type="object">
  Trigger configuration (schedule expression, event pattern, etc.).
</ParamField>

<ParamField body="steps" type="array">
  Ordered list of workflow steps.
</ParamField>

<ParamField body="enabled" type="boolean">
  Enable or disable the workflow.
</ParamField>

## Response

<ResponseField name="workflow" type="object">
  The updated workflow object.
</ResponseField>

## Example

```bash curl theme={null}
curl -X PATCH https://www.hitheo.ai/api/v1/workflows/wf_abc123 \
  -H "Authorization: Bearer $THEO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": false }'
```
