Import everything with previously exported JSON file via API


In Kibana 6.2.2, I exported all my searches, visualizations and dashboards via the "Export Everything" button in the "Management" section.

How can I use the API to later import everything via the JSON file (via curl for instance) ?


You could use the import dashboards API

This does not seem to be working...

curl -XPOST http://localhost:5601/api/kibana/dashboards/import -H 'kbn-xsrf:true' -H 'Content-type:application/json' -d @export.json


{"statusCode":400,"error":"Bad Request","message":"\"value\" must be an object","validation":{"source":"payload","keys":["value"]}}

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.