Exports timelines as an NDJSON file

POST /api/timeline/_export

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
}