chat

Update conversation

Updates conversation metadata. Only the owner can update.

put/api/chat/conversations/{id}

Request

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

Path parameters

idstring required

Conversation ID

Request body

titlestring

Conversation title

isPublicboolean

Whether conversation is public

Example request

{
  "title": "Updated conversation title",
  "isPublic": true
}

Response

Conversation updated successfully

idstring required

Conversation ID

titlestring required

Conversation title

userIdobject

User ID (null for anonymous)

sessionIdobject

Session ID (for anonymous conversations)

isPublicboolean required

Whether conversation is public

source'web' | 'word_plugin' | 'slack' required

Source platform of conversation

isOwnerboolean

Whether current user is owner

lastMessageAtstring required

Last message timestamp

messageCountnumber required

Number of messages in conversation

createdAtstring required

Creation timestamp

updatedAtstring required

Last update timestamp

Example response

{
  "id": "uuid",
  "title": "What is the statute of limitations?",
  "source": "word_plugin",
  "isOwner": true,
  "lastMessageAt": "2024-01-01T00:00:00.000Z",
  "messageCount": 5,
  "createdAt": "2024-01-01T00:00:00.000Z",
  "updatedAt": "2024-01-01T00:00:00.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.