Applies a bulk action to multiple Knowledge Base Entries
The bulk action is applied to all Knowledge Base Entries that match the filter or to the list of Knowledge Base Entries by their IDs.
Body
-
List of Knowledge Base Entries to create.
Any of: Hide attributes Show attributes
-
Whether this Knowledge Base Entry is global, defaults to false.
-
Name of the Knowledge Base Entry.
-
Kibana Space, defaults to 'default' space.
-
Users who have access to the Knowledge Base Entry, defaults to current user. Empty array provides access to all users.
Could be any string, not necessarily a UUID.
-
Knowledge Base resource name for grouping entries, e.g. 'security_labs', 'user', etc.
Values are
security_labs
oruser
. -
Source document name or filepath.
-
Knowledge Base Entry content.
-
Entry type.
Value is
document
. -
Whether this resource should always be included, defaults to false.
-
Object containing Knowledge Base Entry text embeddings and modelId used to create the embeddings.
Hide attributes Show attributes
-
Whether this Knowledge Base Entry is global, defaults to false.
-
Name of the Knowledge Base Entry.
-
Kibana Space, defaults to 'default' space.
-
Users who have access to the Knowledge Base Entry, defaults to current user. Empty array provides access to all users.
Could be any string, not necessarily a UUID.
-
Description for when this index or data stream should be queried for Knowledge Base content. Passed to the LLM as a tool description.
-
Field to query for Knowledge Base content.
-
Index or Data Stream to query for Knowledge Base content.
-
Description of query field used to fetch Knowledge Base content. Passed to the LLM as part of the tool input schema.
-
Entry type.
Value is
index
. -
Array of objects defining the input schema, allowing the LLM to extract structured data to be used in retrieval.
-
Fields to extract from the query result, defaults to all fields if not provided or empty.
-
-
List of Knowledge Base Entries to update.
Any of: Hide attributes Show attributes
-
Whether this Knowledge Base Entry is global, defaults to false.
-
The ID of the anonymization field.
Minimum length is
1
. -
Name of the Knowledge Base Entry.
-
Kibana Space, defaults to 'default' space.
-
Users who have access to the Knowledge Base Entry, defaults to current user. Empty array provides access to all users.
Could be any string, not necessarily a UUID.
-
Knowledge Base resource name for grouping entries, e.g. 'security_labs', 'user', etc.
Values are
security_labs
oruser
. -
Source document name or filepath.
-
Knowledge Base Entry content.
-
Entry type.
Value is
document
. -
Whether this resource should always be included, defaults to false.
-
Object containing Knowledge Base Entry text embeddings and modelId used to create the embeddings.
Hide attributes Show attributes
-
Whether this Knowledge Base Entry is global, defaults to false.
-
The ID of the anonymization field.
Minimum length is
1
. -
Name of the Knowledge Base Entry.
-
Kibana Space, defaults to 'default' space.
-
Users who have access to the Knowledge Base Entry, defaults to current user. Empty array provides access to all users.
Could be any string, not necessarily a UUID.
-
Description for when this index or data stream should be queried for Knowledge Base content. Passed to the LLM as a tool description.
-
Field to query for Knowledge Base content.
-
Index or Data Stream to query for Knowledge Base content.
-
Description of query field used to fetch Knowledge Base content. Passed to the LLM as part of the tool input schema.
-
Entry type.
Value is
index
. -
Array of objects defining the input schema, allowing the LLM to extract structured data to be used in retrieval.
-
Fields to extract from the query result, defaults to all fields if not provided or empty.
-
Responses
-
Successful bulk operation request
Hide response attributes Show response attributes object
-
Hide attributes attributes Show attributes attributes object
-
List of errors encountered during the bulk action.
Hide errors attributes Show errors attributes object
-
Specific error code for the issue.
-
List of Knowledge Base Entries that encountered the error.
-
Error message describing the issue.
-
HTTP status code associated with the error.
-
-
Hide results attributes Show results attributes object
-
List of Knowledge Base Entries that were successfully created.
Any of: Hide attributes Show attributes
-
Whether this Knowledge Base Entry is global, defaults to false.
-
Name of the Knowledge Base Entry.
-
Kibana Space, defaults to 'default' space.
-
Users who have access to the Knowledge Base Entry, defaults to current user. Empty array provides access to all users.
Could be any string, not necessarily a UUID.
-
Time the Knowledge Base Entry was created.
-
User who created the Knowledge Base Entry.
-
The ID of the anonymization field.
Minimum length is
1
. -
Time the Knowledge Base Entry was last updated.
-
User who last updated the Knowledge Base Entry.
-
Knowledge Base resource name for grouping entries, e.g. 'security_labs', 'user', etc.
Values are
security_labs
oruser
. -
Source document name or filepath.
-
Knowledge Base Entry content.
-
Entry type.
Value is
document
. -
Whether this resource should always be included, defaults to false.
-
Object containing Knowledge Base Entry text embeddings and modelId used to create the embeddings.
Hide attributes Show attributes
-
Whether this Knowledge Base Entry is global, defaults to false.
-
Name of the Knowledge Base Entry.
-
Kibana Space, defaults to 'default' space.
-
Users who have access to the Knowledge Base Entry, defaults to current user. Empty array provides access to all users.
Could be any string, not necessarily a UUID.
-
Time the Knowledge Base Entry was created.
-
User who created the Knowledge Base Entry.
-
The ID of the anonymization field.
Minimum length is
1
. -
Time the Knowledge Base Entry was last updated.
-
User who last updated the Knowledge Base Entry.
-
Description for when this index or data stream should be queried for Knowledge Base content. Passed to the LLM as a tool description.
-
Field to query for Knowledge Base content.
-
Index or Data Stream to query for Knowledge Base content.
-
Description of query field used to fetch Knowledge Base content. Passed to the LLM as part of the tool input schema.
-
Entry type.
Value is
index
. -
Array of objects defining the input schema, allowing the LLM to extract structured data to be used in retrieval.
-
Fields to extract from the query result, defaults to all fields if not provided or empty.
-
-
List of IDs of Knowledge Base Entries that were successfully deleted.
-
List of Knowledge Base Entries that were skipped during the bulk action.
Hide skipped attributes Show skipped attributes object
-
List of Knowledge Base Entries that were successfully updated.
Any of: Hide attributes Show attributes
-
Whether this Knowledge Base Entry is global, defaults to false.
-
Name of the Knowledge Base Entry.
-
Kibana Space, defaults to 'default' space.
-
Users who have access to the Knowledge Base Entry, defaults to current user. Empty array provides access to all users.
Could be any string, not necessarily a UUID.
-
Time the Knowledge Base Entry was created.
-
User who created the Knowledge Base Entry.
-
The ID of the anonymization field.
Minimum length is
1
. -
Time the Knowledge Base Entry was last updated.
-
User who last updated the Knowledge Base Entry.
-
Knowledge Base resource name for grouping entries, e.g. 'security_labs', 'user', etc.
Values are
security_labs
oruser
. -
Source document name or filepath.
-
Knowledge Base Entry content.
-
Entry type.
Value is
document
. -
Whether this resource should always be included, defaults to false.
-
Object containing Knowledge Base Entry text embeddings and modelId used to create the embeddings.
Hide attributes Show attributes
-
Whether this Knowledge Base Entry is global, defaults to false.
-
Name of the Knowledge Base Entry.
-
Kibana Space, defaults to 'default' space.
-
Users who have access to the Knowledge Base Entry, defaults to current user. Empty array provides access to all users.
Could be any string, not necessarily a UUID.
-
Time the Knowledge Base Entry was created.
-
User who created the Knowledge Base Entry.
-
The ID of the anonymization field.
Minimum length is
1
. -
Time the Knowledge Base Entry was last updated.
-
User who last updated the Knowledge Base Entry.
-
Description for when this index or data stream should be queried for Knowledge Base content. Passed to the LLM as a tool description.
-
Field to query for Knowledge Base content.
-
Index or Data Stream to query for Knowledge Base content.
-
Description of query field used to fetch Knowledge Base content. Passed to the LLM as part of the tool input schema.
-
Entry type.
Value is
index
. -
Array of objects defining the input schema, allowing the LLM to extract structured data to be used in retrieval.
-
Fields to extract from the query result, defaults to all fields if not provided or empty.
-
-
-
Hide summary attributes Show summary attributes object
-
Number of Knowledge Base Entries that failed during the bulk action.
-
Number of Knowledge Base Entries that were skipped during the bulk action.
-
Number of Knowledge Base Entries that were successfully processed during the bulk action.
-
Total number of Knowledge Base Entries involved in the bulk action.
-
-
-
Total number of Knowledge Base Entries processed.
-
Message describing the result of the bulk action.
-
HTTP status code of the response.
-
Indicates whether the bulk action was successful.
-
-
Generic Error
curl \
--request POST 'https://<KIBANA_URL>/api/security_ai_assistant/knowledge_base/entries/_bulk_action' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"create":[{"title":"New Entry","content":"This is the content of the new entry."}],"delete":{"ids":["123","456","789"],"query":"status:active AND category:technology"},"update":[{"id":"123","title":"Updated Entry","content":"Updated content."}]}'