Create a list item
Spaces method and path for this operation:
post /s/{space_id}/api/lists/items
Refer to Spaces for more information.
Create a list item and associate it with the specified list.
All 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.
Before creating a list item, you must create a list.
Body
Required
List item's properties
-
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.
-
Determines when changes made by the request are made visible to search
Values are
true
,false
, orwait_for
. -
A string that does not contain only whitespace characters
Minimum length is
1
.
POST
/api/lists/items
curl \
--request POST 'https://localhost:5601/api/lists/items' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"id":"string","list_id":"string","meta":{},"refresh":"true","value":"string"}'