Create a Knowledge Base Entry

POST /api/security_ai_assistant/knowledge_base/entries

Create a Knowledge Base Entry

application/json

Body object Required

Any of:

Responses

  • 200 application/json

    Successful request returning Knowledge Base Entries

    Any of:
  • 400 application/json

    A generic error occurred, such as invalid input or missing required fields.

    Hide response attributes Show response attributes object
    • error string Required

      Error type or category.

    • message string Required

      Detailed error message.

    • statusCode number Required

      HTTP status code of the error.

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