POST
/api/security_ai_assistant/knowledge_base/entries
curl \
--request POST 'https://localhost:5601/api/security_ai_assistant/knowledge_base/entries' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '"{\n \"content\": \"To reset your password, go to the settings page and click 'Reset Password'.\",\n \"tags\": [\n \"password\",\n \"reset\",\n \"help\"\n ],\n \"title\": \"How to reset a password\"\n}"'
Request example
{
"content": "To reset your password, go to the settings page and click 'Reset Password'.",
"tags": [
"password",
"reset",
"help"
],
"title": "How to reset a password"
}
Response examples (200)
{
"content": "To reset your password, go to the settings page and click 'Reset Password'.",
"id": "12345",
"tags": [
"password",
"reset",
"help"
],
"title": "How to reset a password"
}
Response examples (400)
{
"error": "Invalid input",
"message": "The 'title' field is required."
}