JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.chat.updateTitle('chat_id', { title: 'title' });
console.log(response.message);curl https://api.morphik.ai/chats/$CHAT_ID/title \
-X PATCH \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"status": "<string>",
"message": "<string>",
"title": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}API Reference
Update Chat Title
Update the title of a chat conversation.
PATCH
/
chats
/
{chat_id}
/
title
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.chat.updateTitle('chat_id', { title: 'title' });
console.log(response.message);curl https://api.morphik.ai/chats/$CHAT_ID/title \
-X PATCH \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"status": "<string>",
"message": "<string>",
"title": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?

