---
title: "Update conversation"
method: PUT
path: "/api/chat/conversations/{id}"
tags: ["chat"]
---

# Update conversation

`PUT /api/chat/conversations/{id}`

## Request

- Base URL: `https://localhost:8080`
- URL: `https://localhost:8080/api/chat/conversations/{id}`
- Auth: none declared

Updates conversation metadata. Only the owner can update.

## Path parameters

- `id` string, required

## Request body

- UpdateConversationDto
  - `title` string: Conversation title
  - `isPublic` boolean: Whether conversation is public

## Response `200`

Conversation updated successfully

- ConversationDto
  - `id` string, required: Conversation ID
  - `title` string, required: Conversation title
  - `userId` object: User ID (null for anonymous)
  - `sessionId` object: Session ID (for anonymous conversations)
  - `isPublic` boolean, required: Whether conversation is public
  - `source` 'web' | 'word_plugin' | 'slack', required: Source platform of conversation
  - `isOwner` boolean: Whether current user is owner
  - `lastMessageAt` string, required: Last message timestamp
  - `messageCount` number, required: Number of messages in conversation
  - `createdAt` string, required: Creation timestamp
  - `updatedAt` string, required: Last update timestamp

## Other responses

- `403`: Access denied
- `404`: Conversation not found

---

[API](https://skmtc.dev/opencase/apis/opencase-backend-api.md) · [All operations](https://skmtc.dev/opencase/apis/opencase-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/opencase/apis/opencase-backend-api/revisions/f16c77cfd9a8?raw)
