Imports timelines.
Body Required
The timelines to import as a readable stream.
-
file Required
-
isImmutable string
Values are
true
orfalse
.
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 https://localhost:5601/api/timeline/_import \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
"isImmutable": "true"
}
Response examples (200)
{
"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
}