cURL
curl --request POST \ --url http://localhost:3000/api/v1/context/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>", "tags": [ "<string>" ], "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } } }
Create a new knowledge document
Session cookie authentication
Document title
Document content in Markdown
Knowledge document created
Show child attributes
Document filename
Document content (Markdown)