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

200
application/json

Successful Response

Response for chat title update endpoint