Create list data streams
Base URL
https://{kibana_url}
Auth
Deprecated
DEPRECATED. deprecated: true is set on this operation. Value list backing data streams for the space
are now created as part of supported workflows; calling this explicitly is rarely required.
WARNING: Do not use for new integrations. Prefer the UI or the list and list-item APIs after confirming
indices exist with GET /api/lists/index.
Creates the .lists and .items data streams in the current Kibana space.
Expand all
acknowledged
boolean
required
400
Invalid input data response
application/json
One of:
−
Hide 2 properties
status_code
integer
required
401
Unsuccessful authentication response
application/json
statusCode
integer
required
403
Not enough privileges response
application/json
statusCode
integer
required
409
List data stream exists response
application/json
status_code
integer
required
500
Internal server error response
application/json
status_code
integer
required
Thank you for your feedback.
Base URL
https://{kibana_url}
Examples
Request
Console
1 / 2 languages
‹
›
1
POST kbn:/api/lists/index
Generated from the API spec
1
2
curl -X POST "${KIBANA_URL}/api/lists/index" \
-H "Authorization: ApiKey ${API_KEY}"
Generated from the API spec
Response
1
2
3
{
"acknowledged": true
}
1
2
3
4
{
"message": "Indices exist but the request could not be completed for the current space. Check that Elasticsearch and Kibana privileges allow index creation for lists.",
"status_code": 400
}
1
2
3
4
5
{
"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]\n",
"statusCode": 401
}
1
2
3
4
5
{
"error": "Forbidden",
"message": "API [POST /api/lists/index] is unauthorized for user, this action is granted by the Kibana privileges [lists-all]",
"statusCode": 403
}
1
2
3
4
{
"message": "data stream: \\\u0022.lists-default\\\u0022 and \\\u0022.items-default\\\u0022 already exists",
"status_code": 409
}
1
2
3
4
{
"message": "Internal Server Error",
"status_code": 500
}