Skip to main content
PATCH
/
chats
/
{chat_id}
/
title
JavaScript
import Morphik from 'morphik';

const client = new Morphik({
  apiKey: 'My API Key',
});

const response = await client.chat.updateTitle('chat_id', { title: 'title' });

console.log(response.message);
{
  "status": "<string>",
  "message": "<string>",
  "title": "<string>"
}

Headers

authorization
string

Path Parameters

chat_id
string
required

Query Parameters

title
string
required

New title for the chat

Response

Successful Response

Response for chat title update endpoint

status
string
required
message
string
required
title
string
required
I