Create an exception list item
Spaces method and path for this operation:
post /s/{space_id}/api/exception_lists/items
Refer to Spaces for more information.
Create an exception item and associate it with the specified exception list.
Before creating exception items, you must create an exception list.
Body
Required
Exception list item's properties
-
Any of: Security_Exceptions_API_ExceptionListItemEntryMatchobject Security_Exceptions_API_ExceptionListItemEntryMatchAnyobject Security_Exceptions_API_ExceptionListItemEntryListobject Security_Exceptions_API_ExceptionListItemEntryExistsobject Security_Exceptions_API_ExceptionListItemEntryNestedobject Security_Exceptions_API_ExceptionListItemEntryMatchWildcardobject -
A string that does not contain only whitespace characters
Minimum length is
1
. -
A string that does not contain only whitespace characters
Minimum length is
1
. -
Additional properties are allowed.
-
A string that does not contain only whitespace characters
Minimum length is
1
. -
Determines whether the exception container is available in all Kibana spaces or just the space in which it is created, where:
single
: Only available in the Kibana space in which it is created.agnostic
: Available in all Kibana spaces.
Values are
agnostic
orsingle
. -
Values are
linux
,macos
, orwindows
. -
Value is
simple
.
POST
/api/exception_lists/items
curl \
--request POST 'https://localhost:5601/api/exception_lists/items' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"comments":[{"comment":"string"}],"description":"string","entries":[{"field":"string","operator":"excluded","type":"string","value":"string"}],"expire_time":"2025-05-04T09:42:00Z","item_id":"string","list_id":"string","meta":{},"name":"string","namespace_type":"agnostic","os_types":["linux"],"tags":["string"],"type":"simple"}'