Body
Required
The Timelines to import as a readable stream.
-
isImmutable
string Whether the Timeline should be immutable
Values are
true
orfalse
.
Responses
-
200 application/json
Indicates the import of Timelines was successful.
-
400 application/json
Indicates the import of Timelines was unsuccessful because of an invalid file extension.
-
404 application/json
Indicates that we were unable to locate the saved object client necessary to handle the import.
-
409 application/json
Indicates the import of Timelines was unsuccessful.
POST
/api/timeline/_import
curl \
--request POST 'http://localhost:5622/api/timeline/_import' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"isImmutable":"true"}'
Request examples
{
"isImmutable": "true"
}
Response examples (200)
{
"errors": [
{
"error": {
"message": "Malformed JSON",
"status_code": 400
},
"id": "6ce1b592-84e3-4b4a-9552-f189d4b82075"
}
],
"success": true,
"success_count": 99,
"timelines_installed": 80,
"timelines_updated": 19
}
Response examples (400)
{
"body": "Invalid file extension",
"statusCode": 400
}
Response examples (404)
{
"body": "Unable to find saved object client",
"statusCode": 404
}
Response examples (409)
{
"body": "Could not import timelines",
"statusCode": 409
}