POST
/
api
/
v1
/
knowledgebase
curl --request POST \
  --url https://api.elemente.ai/api/v1/knowledgebase \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "How to reset my password",
  "type": "faq",
  "agentIds": [
    "a8c87faa-219c-4fa9-bbc0-8acf826d9e6a",
    "97e07544-bf7a-4af6-864c-07736fffb5c2"
  ],
  "title": "How to reset my password",
  "text": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry'\''s standard dummy text ever since the 1500s",
  "description": "This is a knowledge base",
  "urls": [
    "https://example.com/knowledge-base"
  ],
  "refreshFrequency": "manual"
}'
{
  "name": "How to reset my password",
  "type": "faq",
  "url": "https://example.com/knowledge-base",
  "urls": [
    "https://example.com/knowledge-base"
  ],
  "agents": [
    "a8c87faa-219c-4fa9-bbc0-8acf826d9e6a",
    "97e07544-bf7a-4af6-864c-07736fffb5c2"
  ],
  "title": "How to reset my password",
  "status": "active",
  "description": "This is a description of the knowledge base",
  "text": "This is a text of the knowledge base",
  "isEveryone": false,
  "refreshFrequency": "1h",
  "workspace": "34319b9a-625a-4eef-a554-7ed0d27fce6b"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Input data for creating a new knowledge base

The body is of type object.

Response

200 - application/json

Created knowledge base

The response is of type object.