CRBNai API
  1. Knowledge Bots
CRBNai API
  • README
  • Authentication
  • Guides
    • Creating a Knowledge Bot
  • API Keys
    • Get all API Keys
      GET
    • Create API Key
      POST
    • Delete API Key
      DELETE
  • Chats
    • Messages
      • Get Chat Messages
      • Post Chat Message
    • Recipes
      • Get All Chat Recipes
    • Get All Chats
      GET
    • Create Chat
      POST
  • Documents
    • Delete Document
      DELETE
    • Download Document
      GET
    • Update Document
      PUT
  • Knowledge Bots
    • Documents
      • Add Document to Knowledge Bot
      • Prepare Document Upload
    • Chats
      • Chat Messages
        • Get Messages of a Knowledge Bot chat
        • Post a message to a Knowlege Bot chat
      • Get all Knowledge Bot chats
      • Create Knowledge Bot chat
    • Chats - deprecated
      • Chat with a Knowledge Bot
    • Create Knowledge Bot
      POST
    • Get All Knowledge Bots
      GET
    • Get Knowledge Bot by ID
      GET
    • Delete Knowledge Bot by ID
      DELETE
    • Update Knowledge Bot by ID
      PUT
  1. Knowledge Bots

Update Knowledge Bot by ID

PUT
/api/knowledge-bots/{id}
kb
Update Knowledge Bot by ID.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://app.crbnai.com/api/knowledge-bots/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "title": "string",
    "description": "string",
    "embeddable": true,
    "llm_config": {
        "model": "string",
        "vendor": "string"
    },
    "user_metadata": "string"
}'
Response Response Example
{
  "title": "quod",
  "language_model": "saepe",
  "owner_id": "e24c6f66-a7ce-465e-835a-bd35247418c6",
  "documents": [
    {
      "name": "quaerat",
      "id": "a7ae5578-106e-451b-8644-23c862df769f",
      "status": "qui",
      "created_at": "2033-02-24T11:13:37.159Z"
    },
    {
      "name": "nemo",
      "created_at": "2008-03-10T01:54:21.708Z",
      "status": "doloremque",
      "id": "4a73f1d4-e198-4148-8ba4-7331a43cecde"
    },
    {
      "name": "et",
      "status": "fuga",
      "id": "c54f7b44-2232-4abc-92fa-c4449aa09fc3",
      "created_at": "2000-03-29T23:45:36.151Z"
    },
    {
      "name": "amet",
      "status": "quis",
      "id": "f6e73893-e0d2-4d4b-84fa-f50eb270c90f",
      "created_at": "2061-08-20T01:21:12.423Z"
    },
    {
      "name": "quaerat",
      "status": "earum",
      "id": "47ef06db-cd4f-4bc0-90dd-afdd5d184b4e",
      "created_at": "2059-05-11T10:19:07.612Z"
    }
  ],
  "description": "Perspiciatis pariatur repellat mollitia hic excepturi quia repudiandae quibusdam fuga. Earum temporibus veniam a. Tempora perspiciatis neque ab. Voluptates assumenda vero temporibus eum placeat voluptates dicta quas.",
  "id": "7266b12e-a5a1-4a29-a7e8-962c0961a99f",
  "created_at": "2097-08-22T23:20:06.610Z"
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
string 
required
Body Params application/json
title
string 
required
User defined title for the Knowledge Bot.
description
string 
optional
User defined description of the Knowledge Bot.
embeddable
boolean 
optional
Allows embedding the Knowledge Bot for public use.
llm_config
object (LanguageModelConfig) 
optional
Information and configuration of the language model.
model
string 
required
The name of the used language model
vendor
string 
required
Vendor of the used language model
user_metadata
string  | integer  | boolean  | array  | object  | number  | null 
optional
Arbitrary JSON metadata for a Knowledge Bot.
Examples

Responses

🟢200OK
application/json
Body
id
string <uuid>
optional
UUID of the Knowledge Bot.
title
string 
required
User defined title for the Knowledge Bot.
created_at
string 
optional
Date (ISO 8601) that the knowledge base was created at.
description
string 
optional
User defined description of the Knowledge Bot.
embeddable
boolean 
optional
Allows embedding the Knowledge Bot for public use.
llm_config
object (LanguageModelConfig) 
optional
Information and configuration of the language model.
model
string 
required
The name of the used language model
vendor
string 
required
Vendor of the used language model
owner_id
string <uuid>
optional
UUID of the Owner of this Knowledge Bot.
documents
array[object (Document) {4}] 
optional
id
string <uuid>
optional
UUID representing this Document.
name
string 
required
The title of this document.
status
string 
optional
Status of processing this document.
created_at
string <date-time>
optional
Date (ISO 8601) that this document was created at.
user_metadata
string  | integer  | boolean  | array  | object  | number  | null 
optional
Arbitrary JSON metadata for a Knowledge Bot.
Previous
Delete Knowledge Bot by ID
Built with