Export Timelines

POST /api/timeline/_export

Export Timelines as an NDJSON file.

Query parameters

  • file_name string Required

    The name of the file to export

application/json; Elastic-Api-Version=2023-10-31

Body Required

The IDs of the Timelines to export.

  • ids array[string] | null

Responses

  • 200 application/ndjson; Elastic-Api-Version=2023-10-31

    Indicates the Timelines were successfully exported.

    NDJSON of the exported Timelines

  • 400 application/ndjson; Elastic-Api-Version=2023-10-31

    Indicates that the export size limit was exceeded.

    Hide response attributes Show response attributes object
POST /api/timeline/_export
curl \
 -X POST https://localhost:5601/api/timeline/_export?file_name=string \
 -H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
  "ids": [
    "string"
  ]
}
Response examples (200)
string
Response examples (400)
{
  "body": "string",
  "statusCode": 42.0
}