v2

latestOpenAPI 3.1.02026-07-2670186350.6 KB
knowledge

Add

Add data to a knowledge base

post/knowledge/{knowledge_base_id}/add

Path parameters

knowledge_base_idstring uuid required

The id of the knowledge base to add the data to

The id of the knowledge base to add the data to

Request body

keystring nullable

The key of the document

contentstring required
metadataobject

The metadata of the document

Example request

{
  "key": "paris_123",
  "content": "The capital of France is Paris",
  "metadata": {
    "category": "product",
    "price": 100
  }
}

Response

Successful Response

{"stackTrail":"paths:/knowledge/{knowledge_base_id}/add:post:responses:201:content:application/json:schema","oasType":"schema","type":"unknown"}