Using elasticsearch-py client to import dashboards

Thank you, this is helpful for getting all the required visualizations from a dashboard.

For demo purposes, i'm still using the http dashboard from https://demo.elastic.co/app/kibana.

I used the export api you mentioned: https://demo.elastic.co/api/kibana/dashboards/export?dashboard=HTTP

Although, it looks like this json still isn't compatible with the elasticsearch-py create() method. I'm getting the following error:

is there any way to inject multiple json objects with elasticsearch-py? otherwise i will still need to do some parsing by hand.