---
title: "Create a value list item"
method: POST
path: "/api/lists/items"
tags: ["Security Lists API"]
---

# Create a value list item

`POST /api/lists/items`

**Spaces method and path for this operation:**

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/lists/items</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-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.

## Request body

- object
  - `id` string, nonempty — Value list item's identifier.
  - `list_id` string, nonempty, required — Value list's identifier.
  - `meta` SecurityListsAPIListItemMetadata — Placeholder for metadata about the value list item.
  - `refresh` 'true' | 'false' | 'wait_for' — Determines when changes made by the request are made visible to search.
  - `value` string, nonempty, required — The value used to evaluate exceptions.

## Response `200`

Successful response

- SecurityListsAPIListItem
  - `_version` string — The version id, normally returned by the API when the document is retrieved. Use it ensure updates are done against the latest version.
  - `@timestamp` string, date-time
  - `created_at` string, date-time, required — Autogenerated date of object creation.
  - `created_by` string, required — Autogenerated value - user that created object.
  - `id` string, nonempty, required — Value list item's identifier.
  - `list_id` string, nonempty, required — Value list's identifier.
  - `meta` SecurityListsAPIListItemMetadata — Placeholder for metadata about the value list item.
  - `tie_breaker_id` string, required — Field used in search to ensure all containers are sorted and returned correctly.
  - `type` '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' | 'text', required — Specifies the Elasticsearch data type of excludes the list container holds. Some common examples: - `keyword`: Many ECS fields are Elasticsearch keywords - `ip`: IP addresses - `ip_range`: Range of IP addresses (supports IPv4, IPv6, and CIDR notation)
  - `updated_at` string, date-time, required — Autogenerated date of last object update.
  - `updated_by` string, required — Autogenerated value - user that last updated object.
  - `value` string, nonempty, required — The value used to evaluate exceptions.

## Other responses

- `400` — Invalid input data response
- `401` — Unsuccessful authentication response
- `403` — Not enough privileges response
- `404` — Not enough privileges response
- `409` — List item already exists response
- `500` — Internal server error response

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
