Skip to main content
PUT
/
api
/
v1
/
chat-history
/
chats
/
{chat_id}
Update Chat
curl --request PUT \
  --url https://api.mor.org/api/v1/chat-history/chats/{chat_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>"
}'
{
  "id": "<string>",
  "title": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "message_count": 123
}
Update chat title. Allows you to rename a chat conversation. This is useful for organizing and categorizing your chats.

Headers

Authorization
string
required
Bearer token (JWT) from OAuth2 login

Path Parameters

chat_id
string
required
The ID of the chat to update

Body

title
string
required
Updated chat title (max 200 characters)

Response

id
string
Unique identifier for the chat
title
string
Updated chat title
created_at
string
ISO 8601 timestamp when created
updated_at
string
ISO 8601 timestamp when last updated
message_count
integer
Number of messages in the chat
Organization: Use meaningful titles to organize your chats by topic, project, or date. This makes it easier to find specific conversations later.
The updated_at timestamp is automatically updated when you change the title.