# Update Conversation

## User Intent

"I want to update a conversation's configuration"

## Operation

* **SDK Method**: `graphlit.updateConversation()`
* **GraphQL**: `updateConversation` mutation
* **Entity Type**: Conversation
* **Common Use Cases**: Change conversation name, enable/disable, update specification

## TypeScript (Canonical)

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

const graphlit = new Graphlit();

const conversationId = 'conversation-id-here';

// Update conversation name
await graphlit.updateConversation({
  id: conversationId,
  name: 'Updated Conversation Name'
});

console.log('Conversation updated');

// Change model specification
await graphlit.updateConversation({
  id: conversationId,
  specification: { id: newSpecificationId }
});

console.log('Conversation model updated');
```

## Parameters

### ConversationUpdateInput (Required)

* **`id`** (string): Conversation ID
* **`name`** (string): New name (optional)
* **`specification`** (EntityReferenceInput): New specification (optional)

## Response

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.graphlit.dev/api-guides/use-cases/conversations/conversation-update.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
