Imports timelines.
Responses
-
200 application/json; Elastic-Api-Version=2023-10-31
Indicates the import of timelines was successful.
-
400 application/json; Elastic-Api-Version=2023-10-31
Indicates the import of timelines was unsuccessful because of an invalid file extension.
-
404 application/json; Elastic-Api-Version=2023-10-31
Indicates that we were unable to locate the saved object client necessary to handle the import.
-
409 application/json; Elastic-Api-Version=2023-10-31
Indicates the import of timelines was unsuccessful.
POST /api/timeline/_import
curl \
-X POST http://localhost:5601/api/timeline/_import \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
"file": {
"_data": {},
"_encoding": "string",
"_events": {},
"_eventsCount": 42.0,
"_maxListeners": {},
"_position": 42.0,
"_read": {},
"_readableState": {},
"readable": true,
"hapi": {
"filename": "string",
"headers": {},
"isImmutable": "true"
}
}
}
Response examples (200)
{
"data": {
"errors": [
{
"error": {
"message": "string",
"status_code": 42.0
},
"id": "string"
}
],
"success": true,
"success_count": 42.0,
"timelines_installed": 42.0,
"timelines_updated": 42.0
}
}
Response examples (400)
{
"body": "string",
"id": "string",
"statusCode": 42.0
}
Response examples (404)
{
"id": "string",
"statusCode": 42.0
}
Response examples (409)
{
"body": "string",
"id": "string",
"statusCode": 42.0
}