Denser Retriever

Create Knowledge Base

POST
/v1/createKnowledgeBase

Authorization

x-api-key
x-api-key<token>

In: header

Request Body

application/json

name*string

The name of the knowledge base.

Length1 <= length <= 100
description?string

The description of the knowledge base.

Lengthlength <= 1000

Response Body

application/json

application/json

application/json

curl -X POST "https://retriever.denser.ai/api/open/v1/createKnowledgeBase" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "success": true,
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
{
  "success": false,
  "message": "string",
  "data": {},
  "errorCode": "STORAGE_LIMIT_EXCEEDED"
}
{
  "success": false,
  "message": "string",
  "data": {},
  "errorCode": "INPUT_VALIDATION_FAILED"
}