Spaces method and path for this operation:
Refer to Spaces for more information.
Create exception items that apply to a single detection rule.
Body
Required
Rule exception list items
-
Hide items attributes Show items attributes object
-
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 Hide attributes Show attributes
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Values are
excludedorincluded. -
A string that does not contain only whitespace characters
Minimum length is
1.
Hide attributes Show attributes
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Values are
excludedorincluded. -
A string that does not contain only whitespace characters
At least
1element. Minimum length of each is1.
Hide attributes Show attributes
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Hide list attributes Show list attributes object
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Values are
binary,boolean,byte,date,date_nanos,date_range,double,double_range,float,float_range,geo_point,geo_shape,half_float,integer,integer_range,ip,ip_range,keyword,long,long_range,shape,short, ortext.
-
-
Values are
excludedorincluded.
Hide attributes Show attributes
-
At least
1element.One of: Hide attributes Show attributes
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Values are
excludedorincluded. -
Value is
match. -
A string that does not contain only whitespace characters
Minimum length is
1.
Hide attributes Show attributes
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Values are
excludedorincluded. -
Value is
match_any. -
A string that does not contain only whitespace characters
At least
1element. Minimum length of each is1.
-
-
A string that does not contain only whitespace characters
Minimum length is
1.
Hide attributes Show attributes
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Values are
excludedorincluded. -
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
agnosticorsingle. -
Values are
linux,macos, orwindows. -
A string that does not contain only whitespace characters
Minimum length of each is
1. -
Value is
simple.
Responses
-
Successful response
Hide response attributes Show response attributes object
-
Hide comments attributes Show comments attributes object
-
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. -
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.
-
-
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 Hide attributes Show attributes
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Values are
excludedorincluded. -
A string that does not contain only whitespace characters
Minimum length is
1.
Hide attributes Show attributes
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Values are
excludedorincluded. -
A string that does not contain only whitespace characters
At least
1element. Minimum length of each is1.
Hide attributes Show attributes
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Hide list attributes Show list attributes object
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Values are
binary,boolean,byte,date,date_nanos,date_range,double,double_range,float,float_range,geo_point,geo_shape,half_float,integer,integer_range,ip,ip_range,keyword,long,long_range,shape,short, ortext.
-
-
Values are
excludedorincluded.
Hide attributes Show attributes
-
At least
1element.One of: Hide attributes Show attributes
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Values are
excludedorincluded. -
Value is
match. -
A string that does not contain only whitespace characters
Minimum length is
1.
Hide attributes Show attributes
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Values are
excludedorincluded. -
Value is
match_any. -
A string that does not contain only whitespace characters
At least
1element. Minimum length of each is1.
-
-
A string that does not contain only whitespace characters
Minimum length is
1.
Hide attributes Show attributes
-
A string that does not contain only whitespace characters
Minimum length is
1. -
Values are
excludedorincluded. -
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. -
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
agnosticorsingle. -
Values are
linux,macos, orwindows. -
A string that does not contain only whitespace characters
Minimum length of each is
1. -
Value is
simple.
-
Invalid input data response
-
Unsuccessful authentication response
-
Not enough privileges response
-
Internal server error response
curl \
--request POST 'https://localhost:5601/api/detection_engine/rules/{id}/exceptions' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"items": [
{
"comments": [
{
"comment": "string"
}
],
"description": "string",
"entries": [
{
"field": "string",
"operator": "excluded",
"type": "string",
"value": "string"
}
],
"expire_time": "2026-05-04T09:42:00Z",
"item_id": "string",
"meta": {},
"name": "string",
"namespace_type": "agnostic",
"os_types": [
"linux"
],
"tags": [
"string"
],
"type": "simple"
}
]
}'