Exporting saved searches, visualizations, dashboards

Hello, I’m running ES 6.7, is there a way via cURL to export those saved searches, visualizations, dashboards, etc?

I tried the below curl command:

curl -X GET -H ‘Content-Type: application/json’ -e ‘XXXXXXXXX’ https://URL/api/kibana/management/saved_objects/scroll/export -d ‘{“typesToInclude”:[“search”]}’

However i get the below error message:
{“error”:“no handler found for uri [/api/kibana/management/saved_objects/scroll/export] and method [GET]”}

Is there a proper curl command to use to export those save objects?

@jberto78 I suspect you are sending the request to Elasticsearch rather than to Kibana. The saved_objects API is handled by Kibana and not by Elasticsearch. So the URL needs to point to the Kibana host rather than the Elasticsearch host. And you need to use the Kibana port number rather than the Elasticsearch one as well.