Update Chat (v1.0.0)

Update an existing chat in the catalog system

Overview

The Update Chat endpoint allows users to modify an existing chat session in the catalog system. This endpoint accepts a chat identifier and a text prompt, updating the chat with the new information. It is designed to enhance the interactivity of conversations within the BookWorm platform.

Architecture

PUT /api/v1/chats

Updates an existing chat in the catalog system and returns the updated chat’s unique identifier.

Request Body

Example Usage

Terminal window
curl -X PUT https://api.bookworm.com/api/v1/chats/123e4567-e89b-12d3-a456-426614174000 \
-H "Content-Type: application/json" \
-d '{
"id": "123e4567-e89b-12d3-a456-426614174000",
"prompt": {
"text": "What is the capital of France?"
}
}'

Response

204 No Content

Indicates that the chat was successfully updated. No content is returned in the response body.

404 Not Found

Indicates that the specified chat identifier does not exist in the system.

id string <uuid>
required

The unique identifier of the chat to be updated

prompt object