GET /api/security_ai_assistant/knowledge_base/entries/{id}

Spaces method and path for this operation:

get /s/{space_id}/api/security_ai_assistant/knowledge_base/entries/{id}

Refer to Spaces for more information.

Retrieve a Knowledge Base Entry by its unique id.

Path parameters

  • id string(nonempty) Required

    The unique identifier (id) of the Knowledge Base Entry to retrieve.

    Minimum length is 1.

Responses

  • 200 application/json

    Successful request returning the requested Knowledge Base Entry.

    Any of:
  • 400 application/json

    Bad Request response.

    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.

GET /api/security_ai_assistant/knowledge_base/entries/{id}
curl \
 --request GET 'http://localhost:5601/api/security_ai_assistant/knowledge_base/entries/12345' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "createdAt": "2024-01-15T10:00:00.000Z",
  "createdBy": "user@example.com",
  "global": false,
  "id": "12345",
  "kbResource": "user",
  "name": "How to reset a password",
  "namespace": "default",
  "source": "manual",
  "text": "To reset your password, go to the settings page and click 'Reset Password'.",
  "type": "document",
  "updatedAt": "2024-01-15T10:00:00.000Z",
  "updatedBy": "user@example.com"
}
Response examples (400)
{
  "error": "Not Found",
  "message": "No Knowledge Base Entry found with the provided `id`."
}