> For the complete documentation index, see [llms.txt](https://docs.graphlit.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graphlit.dev/api-guides/use-cases/workflows/workflow-update.md).

# Update Workflow

## Workflow: Update Workflow

### User Intent

"I want to update a workflow's configuration"

### Operation

* **SDK Method**: `graphlit.updateWorkflow()`
* **GraphQL**: `updateWorkflow` mutation
* **Entity Type**: Workflow
* **Common Use Cases**: Change workflow steps, update specifications, enable/disable

### TypeScript (Canonical)

```typescript
import { Graphlit } from 'graphlit-client';
import { Types } from 'graphlit-client/dist/generated/graphql-types';

const graphlit = new Graphlit();

// Replace with ID from creating a workflow or from queryWorkflows
const workflowId = 'workflow-id-here';

// Update workflow
await graphlit.updateWorkflow({
  id: workflowId,
  name: 'Updated Workflow Name'
});

console.log('Workflow updated');
```

## Update workflow (snake\_case)

await graphlit.updateWorkflow( workflow=WorkflowUpdateInput( id=workflow\_id, name="Updated Workflow Name" ) )

````

**C#**:
```csharp
using Graphlit;

var client = new Graphlit();

var workflowId = "workflow-id-here";

// Update workflow (PascalCase)
await graphlit.UpdateWorkflow(new WorkflowUpdateInput {
    Id = workflowId,
    Name = "Updated Workflow Name"
});
````

### Parameters

#### WorkflowUpdateInput (Required)

* **`id`** (string): Workflow ID
* **`name`** (string): New name (optional)

### Response

```typescript
{
  updateWorkflow: {
    id: string;
  }
}
```
