POST <kibana host>:<port>/api/kibana/dashboards/import
POST <kibana host>:<port>/s/<space-id>/api/kibana/dashboards/import
The above apis are deprecated. Could you please help with alternate APIs to create new dashboard?
I want to follow below approach to automate creating and updating dashboard?
- Check if kibana space exist or else create new one.
- Check if dashboard exists else create empty dashboard.
- the get the dashbaord ID
- Replace the dashboard id in ndjson file(As I observed dashboard id is mandatory to import saved dashboard object). and import file.ndjson using saved_objects/_import api
Could you please help me with APIs for step no 2 and 3?