Security Lists API
Create a value list item
Spaces method and path for this operation:
<div><span class="operation-verb post">post</span> <span class="operation-path">/s/{space_id}/api/lists/items</span></div>Refer to Spaces for more information.
Create a value list item and associate it with the specified value list.
All value list items in the same list must be the same type. For example, each list item in an ip list must define a specific IP address.
info Before creating a list item, you must create a list.
post/api/lists/items
Request body
Example request
{
"id": "54b01cfb-058d-44b9-838c-282be16c91cd",
"list_id": "21b01cfb-058d-44b9-838c-282be16c91cd",
"refresh": "wait_for"
}Response
Successful response
Example response
{
"_version": "WzIsMV0=",
"@timestamp": "2025-01-08T04:47:34.273Z",
"created_at": "2025-01-08T04:47:34.273Z",
"created_by": "elastic",
"id": "54b01cfb-058d-44b9-838c-282be16c91cd",
"list_id": "21b01cfb-058d-44b9-838c-282be16c91cd",
"tie_breaker_id": "f5508188-b1e9-4e6e-9662-d039a7d89899",
"updated_at": "2025-01-08T04:47:34.273Z",
"updated_by": "elastic"
}