Skip to main content
PUT
https://api.trillet.ai
/
v1
/
api
/
knowledgebase
/
{id}
Update Knowledge Base
curl --request PUT \
  --url https://api.trillet.ai/v1/api/knowledgebase/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "_id": "665a1b2c3d4e5f6a7b8c9d0e",
  "name": "Updated Product Docs",
  "description": "Updated documentation and FAQs",
  "workspaceId": "664a1b2c3d4e5f6a7b8c9d0e",
  "updatedAt": "2024-06-02T09:00:00.000Z"
}

Headers

x-api-key
string
required
API key used for authenticating requests to the API.
x-workspace-id
string
required
Workspace identifier for the API.

Path Parameters

id
string
required
The unique identifier of the knowledge base to update.

Request Body

name
string
Updated name for the knowledge base.
description
string
Updated description for the knowledge base.

Response Fields

_id
string
Unique identifier for the knowledge base.
name
string
Updated name of the knowledge base.
description
string
Updated description of the knowledge base.
{
  "_id": "665a1b2c3d4e5f6a7b8c9d0e",
  "name": "Updated Product Docs",
  "description": "Updated documentation and FAQs",
  "workspaceId": "664a1b2c3d4e5f6a7b8c9d0e",
  "updatedAt": "2024-06-02T09:00:00.000Z"
}