Kibana REST api with non default space

Hi, I'm trying to get dashboard to safety using Kibana 7.1 dashboard export API (would also like to import), but seems that I can only get the dashboards from the default space. I can't find any parameter from the documentation that would allow me to set the space where the dashboards are being exported from.

Tried also to do the curl with user that has no privileges to default space with no luck.

I know the Rest API is still experimental so is it so that this is not currently possible?

What I want to achieve is to get at least my visualizations exported to git repo and to be able to restore from there (even to another kibana). Is there some better way to do this than REST Api (I prefer not click export/import for every single space).

Hey @Jussi_Ritamaki,

Hmm, I believe you just need to prefix _import/_export API URL with the space you want to export from/import to:

POST /s/my-awesome-space/api/saved_objects/_import


Yes that works.

Thank you.

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