cURL
curl --request POST \ --url http://localhost:3001/api/v1/knowledge \ --header 'Content-Type: application/json' \ --cookie nut-session= \ --data ' { "title": "<string>", "content": "<string>", "tags": [ "<string>" ] } '
{ "success": true, "data": { "document": { "filename": "<string>", "title": "<string>", "content": "<string>", "metadata": { "updated": "2023-11-07T05:31:56Z", "category": "<string>", "tags": [ "<string>" ], "sources": [ "<string>" ], "summary": "<string>" }, "snippet": "<string>", "matchedIn": [ "<string>" ], "score": 123 } } }
Create a new knowledge document
Session cookie authentication
Document title
Document content in Markdown
Knowledge document created
Show child attributes