Update an exception list item
Update an exception list item using the id
or item_id
field.
Body Required
Exception list item's properties
-
The version id, normally returned by the API when the item was retrieved. Use it ensure updates are done against the latest version.
-
Describes the exception list.
-
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 -
The exception item’s expiration date, in ISO format. This field is only available for regular exception items, not endpoint exceptions.
-
Exception's identifier.
Minimum length is
1
. -
Human readable string identifier, e.g.
trusted-linux-processes
Minimum length is
1
. -
The exception list's human readable string identifier,
endpoint_list
.Minimum length is
1
. -
Additional properties are allowed.
-
Exception list name.
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
. -
Use this field to specify the operating system.
Values are
linux
,macos
, orwindows
. -
Value is
simple
.
curl \ --request PUT 'https://<KIBANA_URL>/api/exception_lists/items' \ --header "Authorization: $API_KEY" \ --header "Content-Type: application/json" \ --data '{"name":"Updated name","tags":[],"type":"simple","entries":[{"type":"match","field":"host.name","value":"rock01","operator":"included"}],"item_id":"simple_list_item","comments":[],"description":"Updated description","namespace_type":"single"}'
{ "name": "Updated name", "tags": [], "type": "simple", "entries": [ { "type": "match", "field": "host.name", "value": "rock01", "operator": "included" } ], "item_id": "simple_list_item", "comments": [], "description": "Updated description", "namespace_type": "single" }
{ "id": "459c5e7e-f8b2-4f0b-b136-c1fc702f72da", "name": "Updated name", "tags": [], "type": "simple", "entries": [ { "type": "match", "field": "host.name", "value": "rock01", "operator": "included" } ], "item_id": "simple_list_item", "list_id": "simple_list", "_version": "WzEyLDFd", "comments": [], "os_types": [], "created_at": "2025-01-07T21:12:25.512Z", "created_by": "elastic", "updated_at": "2025-01-07T21:34:50.233Z", "updated_by": "elastic", "description": "Updated description", "namespace_type": "single", "tie_breaker_id": "ad0754ff-7b19-49ca-b73e-e6aff6bfa2d0" }
{ "error": "Bad Request", "message": "[request body]: item_id: Expected string, received number", "statusCode": 400 }
{ "error": "Unauthorized", "message": "[security_exception\\n\\tRoot causes:\\n\\t\\tsecurity_exception: unable to authenticate user [elastic] for REST request [/_security/_authenticate]]: unable to authenticate user [elastic] for REST request [/_security/_authenticate]", "statusCode": 401 }
{ "error": "Forbidden", "message": "API [PUT /api/exception_lists/items] is unauthorized for user, this action is granted by the Kibana privileges [lists-all]", "statusCode": 403 }
{ "message": "exception list item item_id: \\\"foo\\\" does not exist", "status_code": 404 }
{ "message": "Internal Server Error", "status_code": 500 }